From: Chris Lattner Date: Wed, 3 Sep 2003 16:01:54 +0000 (+0000) Subject: Follow the pattern of all other atu's X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3e80abee49a2fa01ad10e0638a1cd40d1cd65caf;p=oota-llvm.git Follow the pattern of all other atu's git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8340 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index d52e5a67cc0..fb2aa3f50e7 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -110,12 +110,8 @@ void BytecodeParser::refineAbstractType(const DerivedType *OldType, "Can't refine a type I don't know about!"); } - if (OldType == NewType) { - assert(!OldType->isAbstract()); - I->removeUserFromConcrete(); - } else { - *I = NewType; // Update to point to new, more refined type. - } + I->removeUserFromConcrete(); + *I = NewType; // Update to point to new, more refined type. }