diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 13:38:16 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 13:38:16 -0800 |
commit | ff13dd9563635cd6fb7b9cc458e0e2c5317d0844 (patch) | |
tree | 82ff348d52810081a76ae26256a3ca097c1b442c | |
parent | a0885bc3c598b0cbb13321f5bb65f2f9f13550c3 (diff) |
horrible wip - fix legal return value to call with illegal arguments
-rw-r--r-- | lib/Transforms/NaCl/ExpandI64.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/NaCl/ExpandI64.cpp b/lib/Transforms/NaCl/ExpandI64.cpp index 6c00900fb8..d575d1943a 100644 --- a/lib/Transforms/NaCl/ExpandI64.cpp +++ b/lib/Transforms/NaCl/ExpandI64.cpp @@ -610,6 +610,10 @@ void ExpandI64::finalizeInst(Instruction *I) { j++; } } + if (!isIllegal(I->getType())) { + // legal return value, so just replace the old call with the new call + I->replaceAllUsesWith(L); + } break; } default: dumpIR(I); assert(0); |