]> granicus.if.org Git - llvm/commitdiff
Fix stripDebugInfo: was modifying "DebugLoc" attached to the intrinsic after deleting it.
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 7 May 2016 05:07:47 +0000 (05:07 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 7 May 2016 05:07:47 +0000 (05:07 +0000)
Fix MSAN build.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268849 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DebugInfo.cpp

index 689cf9070289f5bde41a6cfd0a0080c3aeeee072..82ce8c95e785404d07f6c15566b6d2bb786cd076 100644 (file)
@@ -261,6 +261,7 @@ bool llvm::stripDebugInfo(Function &F) {
            CI->getCalledFunction() == DbgVal)) {
         CI->eraseFromParent();
         Changed = true;
+        continue;
       }
       if (I.getDebugLoc()) {
         Changed = true;