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)
commit2be29929beb4541f202c6a2301920a61fd3a75f5
tree4c1cbe5fcc9e0ca68948b3fc5bbf49f37dff4cf3
parent66c6a18d39698957f6f3433337654686201213c7
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.

llvm-svn: 210459
clang/test/CodeGen/sse-builtins-dbg.c [new file with mode: 0644]
clang/test/CodeGen/sse-builtins.c
compiler-rt/test/msan/vector_cvt.cc
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/DebugInfo/inline-no-debug-info.ll [new file with mode: 0644]