summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-06-17 22:21:12 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-06-17 22:21:12 +0000
commitc3dfb5fa89a88ea7e1ec37d5bfde66dbbf0dc738 (patch)
tree37cc0ebe4e4b7148f2d23adabe601f5bed4807fb
parent4fdf57b0b253b0573a6b3dce59ffe3f2d3989210 (diff)
downloadbcm5719-llvm-c3dfb5fa89a88ea7e1ec37d5bfde66dbbf0dc738.tar.gz
bcm5719-llvm-c3dfb5fa89a88ea7e1ec37d5bfde66dbbf0dc738.zip
Fix -Asserts build
llvm-svn: 133305
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 9096120c2d1..59725b7ac83 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -356,8 +356,7 @@ bool LLParser::ParseNamedType() {
}
// Inserting a name that is already defined, get the existing name.
- const Type *Existing = M->getTypeByName(Name);
- assert(Existing && "Conflict but no matching type?!");
+ assert(M->getTypeByName(Name) && "Conflict but no matching type?!");
// Otherwise, this is an attempt to redefine a type, report the error.
return Error(NameLoc, "redefinition of type named '" + Name + "' of type '" +
OpenPOWER on IntegriCloud