summaryrefslogtreecommitdiff
path: root/lib
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
commitd3e724aeaf612529aa358a1394e74922111372af (patch)
treec27ae1bb72127d0b1a435e62241d96f7dc2cec22 /lib
parent66638b2333f326afd1b3cf35d6fc9b930d276511 (diff)
downloadllvm-d3e724aeaf612529aa358a1394e74922111372af.tar.gz
llvm-d3e724aeaf612529aa358a1394e74922111372af.tar.bz2
llvm-d3e724aeaf612529aa358a1394e74922111372af.tar.xz
Fix -Asserts build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/AsmParser/LLParser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp
index 9096120c2d..59725b7ac8 100644
--- a/lib/AsmParser/LLParser.cpp
+++ b/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 '" +