summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2016-04-11 23:03:54 +0000
committerJF Bastien <jfb@google.com>2016-04-11 23:03:54 +0000
commitb3ac75f7488ba2c5f2f322e9e89380b5358b2002 (patch)
tree9893386c785587985689194910b12f724fd5d4b7
parent00db547f97dd4b2d355b569cd6069f8d303fc560 (diff)
downloadbcm5719-llvm-b3ac75f7488ba2c5f2f322e9e89380b5358b2002.tar.gz
bcm5719-llvm-b3ac75f7488ba2c5f2f322e9e89380b5358b2002.zip
AtomicExpandPass: mark assert variable as used
Avoid -Wunused-variable llvm-svn: 266016
-rw-r--r--llvm/lib/CodeGen/AtomicExpandPass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp
index 3f84580d6d0..6d69de12422 100644
--- a/llvm/lib/CodeGen/AtomicExpandPass.cpp
+++ b/llvm/lib/CodeGen/AtomicExpandPass.cpp
@@ -1000,6 +1000,7 @@ void AtomicExpand::expandAtomicLoadToLibcall(LoadInst *I) {
bool expanded = expandAtomicOpToLibcall(
I, Size, Align, I->getPointerOperand(), nullptr, nullptr,
I->getOrdering(), AtomicOrdering::NotAtomic, Libcalls);
+ (void)expanded;
assert(expanded && "expandAtomicOpToLibcall shouldn't fail tor Load");
}
@@ -1013,6 +1014,7 @@ void AtomicExpand::expandAtomicStoreToLibcall(StoreInst *I) {
bool expanded = expandAtomicOpToLibcall(
I, Size, Align, I->getPointerOperand(), I->getValueOperand(), nullptr,
I->getOrdering(), AtomicOrdering::NotAtomic, Libcalls);
+ (void)expanded;
assert(expanded && "expandAtomicOpToLibcall shouldn't fail tor Store");
}
@@ -1028,6 +1030,7 @@ void AtomicExpand::expandAtomicCASToLibcall(AtomicCmpXchgInst *I) {
I, Size, Align, I->getPointerOperand(), I->getNewValOperand(),
I->getCompareOperand(), I->getSuccessOrdering(), I->getFailureOrdering(),
Libcalls);
+ (void)expanded;
assert(expanded && "expandAtomicOpToLibcall shouldn't fail tor CAS");
}
OpenPOWER on IntegriCloud