aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-11 15:35:51 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-11 15:35:51 -0800
commit8316c304f3a1cea78f545a1080e490f75cf000a3 (patch)
tree631232884413f2bcf1d9181c654506bd51f43371 /lib/Transforms
parent9781400ac926f4253060a8846c1e3f9c12904a74 (diff)
fixme comment
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 617180aafe..6e6a320b8d 100644
--- a/lib/Transforms/NaCl/ExpandI64.cpp
+++ b/lib/Transforms/NaCl/ExpandI64.cpp
@@ -618,6 +618,8 @@ void ExpandI64::splitInst(Instruction *I, DataLayout& DL) {
for (BasicBlock::iterator I = BB->begin(); I != BB->end(); ++I) {
PHINode *Phi = dyn_cast<PHINode>(I);
if (!Phi) break;
+ // XXX note that we add a new i64 thing here. now the phi was already an i64 operation, and is being legalized anyhow, but we only notice the original inputs!
+ // we seem to be safe for now due to order of operation (phis show up after switches, but FIXME
Phi->addIncoming(Phi->getIncomingValue(Phi->getBasicBlockIndex(SwitchBB)), NewBB);
}
}