summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-02 05:34:19 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-02 05:34:19 +0000
commit47f754ab877e0bc8b5860f9d689a4591ff188b55 (patch)
tree922ceffcd1259da614c78c38f476a3745c2407c5
parentf4510007c762ec8aaea25962b5e2ac163bd53762 (diff)
Fix "warning: variabl 'XX’ set but not used" in release build (variable used in assertion, NFC)
From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265220 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/MemoryDependenceAnalysis.cpp2
-rw-r--r--lib/Transforms/Utils/MemorySSA.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp
index 2436543a816..ce6519abb4e 100644
--- a/lib/Analysis/MemoryDependenceAnalysis.cpp
+++ b/lib/Analysis/MemoryDependenceAnalysis.cpp
@@ -1407,7 +1407,7 @@ bool MemoryDependenceResults::getNonLocalPointerDepFromBB(
NonLocalDepResult(I.getBB(), I.getResult(), Pointer.getAddr()));
break;
}
- (void)foundBlock;
+ (void)foundBlock; (void)GotWorklistLimit;
assert((foundBlock || GotWorklistLimit) && "Current block not in cache?");
}
diff --git a/lib/Transforms/Utils/MemorySSA.cpp b/lib/Transforms/Utils/MemorySSA.cpp
index 1ce8970c78e..e5f02be9655 100644
--- a/lib/Transforms/Utils/MemorySSA.cpp
+++ b/lib/Transforms/Utils/MemorySSA.cpp
@@ -540,7 +540,7 @@ void MemorySSA::verifyDomination(Function &F) const {
continue;
for (User *U : MD->users()) {
- BasicBlock *UseBlock;
+ BasicBlock *UseBlock; (void)UseBlock;
// Things are allowed to flow to phi nodes over their predecessor edge.
if (auto *P = dyn_cast<MemoryPhi>(U)) {
for (const auto &Arg : P->operands()) {