[llvm] r205777 - Verifier: Give the right message for bad atomic loads
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Apr 8 10:07:44 PDT 2014
Author: dexonsmith
Date: Tue Apr 8 12:07:44 2014
New Revision: 205777
URL: http://llvm.org/viewvc/llvm-project?rev=205777&view=rev
Log:
Verifier: Give the right message for bad atomic loads
Talk about load (not store) on an invalid atomic load.
<rdar://problem/16287567>
Modified:
llvm/trunk/lib/IR/Verifier.cpp
Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=205777&r1=205776&r2=205777&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Tue Apr 8 12:07:44 2014
@@ -1730,11 +1730,11 @@ void Verifier::visitLoadInst(LoadInst &L
"Atomic load must specify explicit alignment", &LI);
if (!ElTy->isPointerTy()) {
Assert2(ElTy->isIntegerTy(),
- "atomic store operand must have integer type!",
+ "atomic load operand must have integer type!",
&LI, ElTy);
unsigned Size = ElTy->getPrimitiveSizeInBits();
Assert2(Size >= 8 && !(Size & (Size - 1)),
- "atomic store operand must be power-of-two byte-sized integer",
+ "atomic load operand must be power-of-two byte-sized integer",
&LI, ElTy);
}
} else {
More information about the llvm-commits
mailing list