[PATCH] Fixing line numbers of inlined allocas

Adrian Prantl aprantl at apple.com
Wed Oct 15 10:58:41 PDT 2014


>>! In D5401#10, @echristo wrote:
>> if there aren't any?) which should be the null DebugLoc. I suspect the more
>> general solution than this is to just ensure that instructions with no
>> DebugLoc continue to have no DebugLoc when they're inlined (they certainly
>> shouldn't end up with the call sites DebugLoc - without inlining info, etc).
>> 
> 
> This is likely the right solution.

Agreed, especially since we want the alloca in this example to be counted towards the prologue.

-- adrian

http://reviews.llvm.org/D5401






More information about the llvm-commits mailing list