mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 19:06:05 +00:00
Fix stripDebugInfo: was modifying "DebugLoc" attached to the intrinsic after deleting it.
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
This commit is contained in:
parent
2dea119616
commit
0c3421d8d9
@ -261,6 +261,7 @@ bool llvm::stripDebugInfo(Function &F) {
|
|||||||
CI->getCalledFunction() == DbgVal)) {
|
CI->getCalledFunction() == DbgVal)) {
|
||||||
CI->eraseFromParent();
|
CI->eraseFromParent();
|
||||||
Changed = true;
|
Changed = true;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
if (I.getDebugLoc()) {
|
if (I.getDebugLoc()) {
|
||||||
Changed = true;
|
Changed = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user