aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-03 22:47:00 -0500
committerAlon Zakai <alonzakai@gmail.com>2013-12-03 22:47:00 -0500
commit978885dc4c8b50e5891b9a65a70252e7e49bb39a (patch)
tree0ab58b092b487ec5705acd1929e38bc74bf4eb04
parent8682fe4be604a244616b34afe61d89b35892fc7b (diff)
assert on i64 stores
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index 7aba24cb26..758d377b77 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -1796,6 +1796,13 @@ std::string CppWriter::generateInstruction(const Instruction *I) {
const Value *V = SI->getValueOperand();
unsigned Alignment = SI->getAlignment();
text = getStore(P, V->getType(), getValueAsStr(V), Alignment) + ';';
+
+ // FIXME: add i64 legalization
+ Type *T = V->getType();
+ if (T->isIntegerTy() && T->getIntegerBitWidth() > 32) {
+ assert(0 && "FIXME: add i64 legalization");
+ }
+
break;
}
case Instruction::GetElementPtr: {