Fix a typo in the bitcode reader in the handling of atomic stores. Reported by David...
authorEli Friedman <eli.friedman@gmail.com>
Mon, 19 Sep 2011 19:41:28 +0000 (19:41 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 19 Sep 2011 19:41:28 +0000 (19:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140040 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/BitcodeReader.cpp
test/Assembler/atomic.ll

index 148f74808a223c483f27bacc95af98738a902cf9..ca90315162924b436f7e33b558c4acc2f9121651 100644 (file)
@@ -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]);
index fa6f1f40e09d33ff79234ab3f2f443c4645d7b27..b245cdea75b1835e8580eb21e56b0c9a1c182f4c 100644 (file)
@@ -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) {