Fix line numbers for code inlined from __nodebug__ functions.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 9 Jun 2014 09:09:19 +0000 (09:09 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 9 Jun 2014 09:09:19 +0000 (09:09 +0000)
commit503af43f3cc16be6b37d1d9b17d01f1e78c12a1a
tree3f6831388cefd692b3cf807edba7c73164035714
parent544c895d71f0b00503f040c32212fcc0958de8cf
Fix line numbers for code inlined from __nodebug__ functions.

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.

Fixes PR19001.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210459 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
test/DebugInfo/inline-no-debug-info.ll [new file with mode: 0644]