forked from OSchip/llvm-project
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:
parent
77edc2ef9f
commit
bbedb1495c
|
@ -261,6 +261,7 @@ bool llvm::stripDebugInfo(Function &F) {
|
|||
CI->getCalledFunction() == DbgVal)) {
|
||||
CI->eraseFromParent();
|
||||
Changed = true;
|
||||
continue;
|
||||
}
|
||||
if (I.getDebugLoc()) {
|
||||
Changed = true;
|
||||
|
|
Loading…
Reference in New Issue