Fix stripDebugInfo: was modifying "DebugLoc" attached to the intrinsic after deleting it.

Fix MSAN build.

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 268849
This commit is contained in:
Mehdi Amini 2016-05-07 05:07:47 +00:00
parent 77edc2ef9f
commit bbedb1495c
1 changed files with 1 additions and 0 deletions

View File

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