aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-06 21:44:08 +0000
committerChris Lattner <sabre@nondot.org>2008-04-06 21:44:08 +0000
commit0c80c75783c2bcc73268dd10492d9f0d000731d0 (patch)
tree09037b1d71ba5161f2e1d79293c7a41de86a554f /lib/Transforms
parentc024cbca224812f4a2fe0fe85333d48d78635189 (diff)
silence a warning when assertions are disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index 43251c344f..532af2511e 100644
--- a/lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp
@@ -726,7 +726,7 @@ static bool FindMaximalLegalAddressingMode(Value *Addr, const Type *AccessTy,
}
if (Instruction *I = dyn_cast_or_null<Instruction>(AddrInst)) {
- assert(AddrModeInsts.back() == I && "Stack imbalance");
+ assert(AddrModeInsts.back() == I && "Stack imbalance"); I = I;
AddrModeInsts.pop_back();
}