mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-04 19:38:22 +00:00
Fix a use after free. An instruction can't be both an intrinsic call and a fence.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136319 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2bf84c15d2
commit
b2e7c8250b
@ -132,7 +132,7 @@ namespace {
|
||||
Instruction *Inst = DI++;
|
||||
if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst))
|
||||
Changed |= LowerAtomicIntrinsic(II);
|
||||
if (FenceInst *FI = dyn_cast<FenceInst>(Inst))
|
||||
else if (FenceInst *FI = dyn_cast<FenceInst>(Inst))
|
||||
Changed |= LowerFenceInst(FI);
|
||||
}
|
||||
return Changed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user