[PATCH] D77639: [DebugInfo][NFC] Early-exit when analysing for single-location variables

David Stenberg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 13:04:01 PDT 2020


dstenb added inline comments.


================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1485
+  // candidate for being validThroughout.
+  if (RangeEnd != nullptr && !DbgValue->getOperand(0).isImm())
+    return false;
----------------
aprantl wrote:
> dstenb wrote:
> > Nit: It might be preferred to use `!RangeEnd` here since the rest of the code in this function does nullptr checks like that.
> You probably mean `RangeEnd`? 
> I also think that is better.
Oops, yes!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77639/new/

https://reviews.llvm.org/D77639





More information about the llvm-commits mailing list