diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-03 18:41:43 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-03 18:41:43 -0500 |
commit | c7399c6d78ca4858756a87b0e93bb773c2580ac3 (patch) | |
tree | c4fb3046fca89a5aff57665f5380930df3f6d1b8 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | ab1b3decb6612a586bfb4d2e2374f3af9fed3b4e (diff) |
assert on i64s
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 67e19d0e11..234d5f6292 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -1567,6 +1567,12 @@ std::string CppWriter::generateInstruction(const Instruction *I) { std::string bbname = "NO_BBNAME"; std::string iName(getCppName(I)); + // FIXME: add i64 legalization + Type *T = I->getType(); + if (T->isIntegerTy() && T->getIntegerBitWidth() > 32) { + assert(0 && "FIXME: add i64 legalization"); + } + // Before we emit this instruction, we need to take care of generating any // forward references. So, we get the names of all the operands in advance const unsigned Ops(I->getNumOperands()); |