aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-29 16:29:22 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-29 16:29:22 -0800
commite5bf2f7705631a5b3122817e63b018df3eecd0d5 (patch)
treebbad12c46ae5cce2125d98ceab5cd09e45b91894 /lib/Transforms
parent55197db1f3dbc6912667339e204b67e346e3b03a (diff)
fix call legalization bug
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/NaCl/ExpandI64.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/NaCl/ExpandI64.cpp b/lib/Transforms/NaCl/ExpandI64.cpp
index 08a16b4f04..dc4cd4f9fe 100644
--- a/lib/Transforms/NaCl/ExpandI64.cpp
+++ b/lib/Transforms/NaCl/ExpandI64.cpp
@@ -961,6 +961,8 @@ void ExpandI64::finalizeInst(Instruction *I) {
break;
}
case Instruction::Call: {
+ if (Split.Chunks.size() == 0) break; // was not legalized
+
Instruction *L = cast<Instruction>(Split.Chunks[0]);
// H doesn't need to be fixed, it's just a call to getHigh