[compiler-rt] r210459 - Fix line numbers for code inlined from __nodebug__ functions.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Mon Jun 9 02:09:20 PDT 2014


Author: eugenis
Date: Mon Jun  9 04:09:19 2014
New Revision: 210459

URL: http://llvm.org/viewvc/llvm-project?rev=210459&view=rev
Log:
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.

Modified:
    compiler-rt/trunk/test/msan/vector_cvt.cc

Modified: compiler-rt/trunk/test/msan/vector_cvt.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/vector_cvt.cc?rev=210459&r1=210458&r2=210459&view=diff
==============================================================================
--- compiler-rt/trunk/test/msan/vector_cvt.cc (original)
+++ compiler-rt/trunk/test/msan/vector_cvt.cc Mon Jun  9 04:09:19 2014
@@ -8,7 +8,7 @@ int to_int(double v) {
   int x = _mm_cvtsd_si32(t);
   return x;
   // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value
-  // CHECK: #{{.*}} in to_int{{.*}}vector_cvt.cc:[[@LINE-4]]
+  // CHECK: #{{.*}} in to_int{{.*}}vector_cvt.cc:[[@LINE-3]]
 }
 
 int main() {





More information about the llvm-commits mailing list