aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Value.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-21 19:47:03 +0000
committerChris Lattner <sabre@nondot.org>2008-06-21 19:47:03 +0000
commit60ebb192ec96d6f486272b3036fa7bb38bf61637 (patch)
treec7ce6f85197af4387e927e9dd18f4839dbafa96a /lib/VMCore/Value.cpp
parent5c3794ea2a5e703834a43d8441faf8dbe8386f50 (diff)
downloadexternal_llvm-60ebb192ec96d6f486272b3036fa7bb38bf61637.zip
external_llvm-60ebb192ec96d6f486272b3036fa7bb38bf61637.tar.gz
external_llvm-60ebb192ec96d6f486272b3036fa7bb38bf61637.tar.bz2
fix some warnings when assertions are disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Value.cpp')
-rw-r--r--lib/VMCore/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp
index e581fe8..5df3532 100644
--- a/lib/VMCore/Value.cpp
+++ b/lib/VMCore/Value.cpp
@@ -264,7 +264,7 @@ void Value::takeName(Value *V) {
// Get V's ST, this should always succed, because V has a name.
ValueSymbolTable *VST;
bool Failure = getSymTab(V, VST);
- assert(!Failure && "V has a name, so it should have a ST!");
+ assert(!Failure && "V has a name, so it should have a ST!"); Failure=Failure;
// If these values are both in the same symtab, we can do this very fast.
// This works even if both values have no symtab yet.