summaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/ConstantWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r--lib/Bytecode/Writer/ConstantWriter.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp
index 3234a35f58..029e6cc2b5 100644
--- a/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/lib/Bytecode/Writer/ConstantWriter.cpp
@@ -146,10 +146,6 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
output_vbr(cast<ConstantSInt>(CPV)->getValue(), Out);
break;
- case Type::TypeTyID: // Serialize type type
- assert(0 && "Types should not be in the Constant!");
- break;
-
case Type::ArrayTyID: {
const ConstantArray *CPA = cast<ConstantArray>(CPV);
assert(!CPA->isString() && "Constant strings should be handled specially!");
@@ -193,7 +189,7 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
case Type::LabelTyID:
default:
std::cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize"
- << " type '" << CPV->getType()->getName() << "'\n";
+ << " type '" << CPV->getType() << "'\n";
break;
}
return;