summaryrefslogtreecommitdiff
path: root/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-08 17:07:44 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-08 17:07:44 +0000
commitbd382db782f029ef6cc40bf1cb425c441fc21ab1 (patch)
tree3f832da036a42e57ee71e244551542780707a6c3 /lib/IR/Verifier.cpp
parent35d647b6f371265519df465ad1e7b28de7515185 (diff)
downloadllvm-bd382db782f029ef6cc40bf1cb425c441fc21ab1.tar.gz
llvm-bd382db782f029ef6cc40bf1cb425c441fc21ab1.tar.bz2
llvm-bd382db782f029ef6cc40bf1cb425c441fc21ab1.tar.xz
Verifier: Give the right message for bad atomic loads
Talk about load (not store) on an invalid atomic load. <rdar://problem/16287567> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/Verifier.cpp')
-rw-r--r--lib/IR/Verifier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp
index ddda93cdd1..9cd1b52dee 100644
--- a/lib/IR/Verifier.cpp
+++ b/lib/IR/Verifier.cpp
@@ -1730,11 +1730,11 @@ void Verifier::visitLoadInst(LoadInst &LI) {
"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 {