[PATCH] Fix line numbers for code inlined from __nodebug__ functions.

Evgeniy Stepanov eugenis at google.com
Mon Jun 2 04:01:48 PDT 2014


Hi chandlerc,

This is a fix for PR19001.

Instructions from __nodebug__ functions don't have file:line information even when inlined into no-nodebug functions.
As a result, intrinsics (SSE and other) from <*intrin.h> clang headers _never_ have file:line information.

With this change, an instruction without !dbg metadata gets one from the call instruction when inlined.

http://reviews.llvm.org/D3988

Files:
  lib/Transforms/Utils/InlineFunction.cpp
  test/Transforms/Inline/inline-line-numbers.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3988.10010.patch
Type: text/x-patch
Size: 6107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140602/0dcb3223/attachment.bin>


More information about the llvm-commits mailing list