aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/ConstantReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bytecode/Reader/ConstantReader.cpp')
-rw-r--r--lib/Bytecode/Reader/ConstantReader.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp
index fb2aa3f50e..13cdc85bcd 100644
--- a/lib/Bytecode/Reader/ConstantReader.cpp
+++ b/lib/Bytecode/Reader/ConstantReader.cpp
@@ -76,7 +76,7 @@ const Type *BytecodeParser::parseTypeConstant(const unsigned char *&Buf,
case Type::PointerTyID: {
unsigned ElTyp;
if (read_vbr(Buf, EndBuf, ElTyp)) return Val;
- BCR_TRACE(5, "Pointer Type Constant #" << (ElTyp-14) << "\n");
+ BCR_TRACE(5, "Pointer Type Constant #" << ElTyp << "\n");
const Type *ElementType = getType(ElTyp);
if (ElementType == 0) return Val;
return PointerType::get(ElementType);
@@ -99,9 +99,6 @@ const Type *BytecodeParser::parseTypeConstant(const unsigned char *&Buf,
//
void BytecodeParser::refineAbstractType(const DerivedType *OldType,
const Type *NewType) {
- if (OldType == NewType &&
- OldType->isAbstract()) return; // Type is modified, but same
-
TypeValuesListTy::iterator I = find(FunctionTypeValues.begin(),
FunctionTypeValues.end(), OldType);
if (I == FunctionTypeValues.end()) {