diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 14:27:50 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 14:27:50 -0800 |
commit | 0f1319540681e9146a45f57914721dbc43fb57cd (patch) | |
tree | ac0f19a6f76247d48c07793808dc0d24efed8677 /lib/Transforms | |
parent | 39703cc014a12ba86821cb82c5782b18c00039a4 (diff) |
cleanup
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/NaCl/ExpandI64.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Transforms/NaCl/ExpandI64.cpp b/lib/Transforms/NaCl/ExpandI64.cpp index b131b1a349..14d668c9c8 100644 --- a/lib/Transforms/NaCl/ExpandI64.cpp +++ b/lib/Transforms/NaCl/ExpandI64.cpp @@ -425,15 +425,6 @@ void ExpandI64::splitInst(Instruction *I, DataLayout& DL) { // we need to add a bitcast CV = new BitCastInst(CV, getLegalizedFunctionType(OFT)->getPointerTo(), "", I); } - FunctionType *FT = NULL; - if (Function *F = dyn_cast<Function>(CV)) { - FT = F->getFunctionType(); - } else if (PointerType *PT = dyn_cast<PointerType>(CV->getType())) { - FT = cast<FunctionType>(PT->getElementType()); - } else { - assert(0); // TODO: handle varargs i64 functions, etc. - } - // create a call with space for legal args SmallVector<Value *, 0> Args; // XXX int Num = OFT->getNumParams(); |