[llvm] r268849 - Fix stripDebugInfo: was modifying "DebugLoc" attached to the intrinsic after deleting it.

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 22:07:47 PDT 2016


Author: mehdi_amini
Date: Sat May  7 00:07:47 2016
New Revision: 268849

URL: http://llvm.org/viewvc/llvm-project?rev=268849&view=rev
Log:
Fix stripDebugInfo: was modifying "DebugLoc" attached to the intrinsic after deleting it.

Fix MSAN build.

From: Mehdi Amini <mehdi.amini at apple.com>

Modified:
    llvm/trunk/lib/IR/DebugInfo.cpp

Modified: llvm/trunk/lib/IR/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfo.cpp?rev=268849&r1=268848&r2=268849&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfo.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfo.cpp Sat May  7 00:07:47 2016
@@ -261,6 +261,7 @@ bool llvm::stripDebugInfo(Function &F) {
            CI->getCalledFunction() == DbgVal)) {
         CI->eraseFromParent();
         Changed = true;
+        continue;
       }
       if (I.getDebugLoc()) {
         Changed = true;




More information about the llvm-commits mailing list