[PATCH] D37932: [DebugInfo] Correctly coalesce DBG_VALUEs that mix direct and indirect values
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 15:30:47 PDT 2017
rnk added inline comments.
================
Comment at: llvm/lib/CodeGen/LiveDebugVariables.cpp:110
+ // Fix up the undef location number, which gets truncated.
+ return LocNo == INT_MAX ? UndefLocNo : LocNo;
+ }
----------------
aprantl wrote:
> aprantl wrote:
> > I find this confusing.. we only have 32 bits available for LocNo.. can this every fire?
> s/32/31/
It's INT_MAX, not UINT_MAX, i.e. 0x7FFFFFFF, so it's the all-ones value of the 31-bit bitfield. I wasn't sure what the best way to express this was. =/
https://reviews.llvm.org/D37932
More information about the llvm-commits
mailing list