diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/coreaction.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/coreaction.cc index ea10394d27..8a64d731c9 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/coreaction.cc +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/coreaction.cc @@ -2150,11 +2150,11 @@ void ActionNameVars::makeRec(ProtoParameter *param,Varnode *vn,mapgetDef(); if (castop->code() == CPUI_CAST) { vn = castop->getIn(0); - ct = (Datatype *)0; // Indicate that this is a less prefered name + ct = (Datatype *)0; // Indicate that this is a less preferred name } } HighVariable *high = vn->getHigh(); - if (!high->isMark()) return; // Not one of the + if (!high->isMark()) return; // Not one of the variables needing a name map::iterator iter = recmap.find(high); if (iter != recmap.end()) { // We have seen this varnode before @@ -2191,6 +2191,7 @@ void ActionNameVars::lookForFuncParamNames(Funcdata &data,const vectorisFree()) continue; + if (vn->isInput()) continue; // Don't override unaffected or input naming strategy Symbol *sym = vn->getHigh()->getSymbol(); if (sym == (Symbol *)0) continue; if (!sym->isNameUndefined()) continue;