mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Fix a typo in the bitcode reader in the handling of atomic stores. Reported by David Meyer on llvmdev.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fb12f35545
commit
c3d3598425
@ -2653,7 +2653,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
|
||||
return Error("Invalid STOREATOMIC record");
|
||||
|
||||
AtomicOrdering Ordering = GetDecodedOrdering(Record[OpNum+2]);
|
||||
if (Ordering == NotAtomic || Ordering == Release ||
|
||||
if (Ordering == NotAtomic || Ordering == Acquire ||
|
||||
Ordering == AcquireRelease)
|
||||
return Error("Invalid STOREATOMIC record");
|
||||
SynchronizationScope SynchScope = GetDecodedSynchScope(Record[OpNum+3]);
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -S < %s | FileCheck %s
|
||||
; RUN: opt < %s | opt -S | FileCheck %s
|
||||
; Basic smoke test for atomic operations.
|
||||
|
||||
define void @f(i32* %x) {
|
||||
|
Loading…
Reference in New Issue
Block a user