From: Mehdi Amini Date: Sat, 7 May 2016 05:07:47 +0000 (+0000) Subject: Fix stripDebugInfo: was modifying "DebugLoc" attached to the intrinsic after deleting it. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c3421d8d9a563b78bdf906a6f767becb939408c;p=llvm Fix stripDebugInfo: was modifying "DebugLoc" attached to the intrinsic after deleting it. Fix MSAN build. From: Mehdi Amini git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268849 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 689cf907028..82ce8c95e78 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -261,6 +261,7 @@ bool llvm::stripDebugInfo(Function &F) { CI->getCalledFunction() == DbgVal)) { CI->eraseFromParent(); Changed = true; + continue; } if (I.getDebugLoc()) { Changed = true;