silence a warning when assertions are disabled.
authorChris Lattner <sabre@nondot.org>
Sun, 6 Apr 2008 21:44:08 +0000 (21:44 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 6 Apr 2008 21:44:08 +0000 (21:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49283 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/CodeGenPrepare.cpp

index 43251c344f8757ec92132a476322fa85d61af900..532af2511e11b5b94af8549430c43e7ebc59d088 100644 (file)
@@ -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();
   }