diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/merge.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/merge.hh index a300d9bbf4..0eb7ddde49 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/merge.hh +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/merge.hh @@ -157,7 +157,7 @@ inline bool Merge::compareHighByBlock(const HighVariable *a,const HighVariable * PcodeOp *def1 = v1->getDef(); PcodeOp *def2 = v2->getDef(); if ( def1 == (PcodeOp *) 0 ) { - return true; + return def2 != (PcodeOp *) 0; } else if ( def2 == (PcodeOp *) 0 ) { return false;