diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-10 16:47:44 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-10 16:47:44 -0800 |
commit | ff20f1d3fbab2b2ef6ec58fa0748fc9544b715e7 (patch) | |
tree | 3e8c666caac0b49c2760b468db0fdb4ab69bb079 /lib/Transforms | |
parent | 59962e958c83ac9427723a365751405212b3ffb3 (diff) |
fix bug with GetHigh already being defined in module
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/NaCl/ExpandI64.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/NaCl/ExpandI64.cpp b/lib/Transforms/NaCl/ExpandI64.cpp index eb0b9ea09a..23b2fdc307 100644 --- a/lib/Transforms/NaCl/ExpandI64.cpp +++ b/lib/Transforms/NaCl/ExpandI64.cpp @@ -829,7 +829,7 @@ void ExpandI64::ensureFuncs() { Shl = Function::Create(FourFunc, GlobalValue::ExternalLinkage, "bitshift64Shl", TheModule); - if (!TheModule->getFunction("getHigh32")) { + if (!(GetHigh = TheModule->getFunction("getHigh32"))) { SmallVector<Type*, 0> GetHighArgTypes; FunctionType *GetHighFunc = FunctionType::get(i32, GetHighArgTypes, false); GetHigh = Function::Create(GetHighFunc, GlobalValue::ExternalLinkage, @@ -906,7 +906,6 @@ bool ExpandI64::runOnModule(Module &M) { Type *T = i == -1 ? I->getType() : I->getOperand(i)->getType(); if (isIllegal(T)) { Changed = true; - //dump("split"); dumpIR(I); splitInst(I, DL); break; } |