Fix a typo in the bitcode reader in the handling of atomic stores. Reported by David Meyer on llvmdev.

llvm-svn: 140040
This commit is contained in:
Eli Friedman
2011-09-19 19:41:28 +00:00
parent 57328aa902
commit ff05929fab
2 changed files with 2 additions and 2 deletions

View 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]);