aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-05-28 00:21:06 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-05-28 00:21:06 +0000
commit4e6620c9e0745ed19a8fe9844c43415afbb14ad8 (patch)
treea85540d4a8c0decd7ff2dbbb2c4b1c3f023fe81c /lib
parent9ed0f17a62ea446b86a4c22a38127c5912b96e95 (diff)
Remove some more dead code resulting from adding setTypeName().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/AsmParser/llvmAsmParser.y6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index 27464acfe2..f06b5b02e9 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -520,11 +520,7 @@ static bool setValueName(Value *V, char *NameStr) {
if (Existing) { // Inserting a name that is already defined???
// We are a simple redefinition of a value, check to see if it
// is defined the same as the old one...
- if (const Type *Ty = dyn_cast<Type>(Existing)) {
- if (Ty == cast<Type>(V)) return true; // Yes, it's equal.
- // std::cerr << "Type: " << Ty->getDescription() << " != "
- // << cast<Type>(V)->getDescription() << "!\n";
- } else if (const Constant *C = dyn_cast<Constant>(Existing)) {
+ if (const Constant *C = dyn_cast<Constant>(Existing)) {
if (C == V) return true; // Constants are equal to themselves
} else if (GlobalVariable *EGV = dyn_cast<GlobalVariable>(Existing)) {
// We are allowed to redefine a global variable in two circumstances: