summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-05-26 22:50:28 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-05-26 22:50:28 +0000
commit0eefdcd73fb0669daa626aa3f7badf8b37d92e9f (patch)
treef37310fde7549a4766c2005bc6a1880ab436c84f /llvm/lib/Transforms
parentaf494c5f13354fe52159cd2d0fc1adc2aba99e26 (diff)
downloadbcm5719-llvm-0eefdcd73fb0669daa626aa3f7badf8b37d92e9f.tar.gz
bcm5719-llvm-0eefdcd73fb0669daa626aa3f7badf8b37d92e9f.zip
Do not pass a null pointer if this instruction is not prepended or
appended anywhere. llvm-svn: 13798
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/CodeExtractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
index 4d1093b739d..cab281a7fcb 100644
--- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
@@ -394,7 +394,7 @@ emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer,
Indices.push_back(ConstantUInt::get(Type::UIntTy, i));
GetElementPtrInst *GEP =
new GetElementPtrInst(Struct, Indices,
- "gep_" + StructValues[i]->getName(), 0);
+ "gep_" + StructValues[i]->getName());
codeReplacer->getInstList().push_back(GEP);
StoreInst *SI = new StoreInst(StructValues[i], GEP);
codeReplacer->getInstList().push_back(SI);
@@ -420,7 +420,7 @@ emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer,
Indices.push_back(ConstantUInt::get(Type::UIntTy, FirstOut + i));
GetElementPtrInst *GEP
= new GetElementPtrInst(Struct, Indices,
- "gep_reload_" + outputs[i]->getName(), 0);
+ "gep_reload_" + outputs[i]->getName());
codeReplacer->getInstList().push_back(GEP);
Output = GEP;
} else {
OpenPOWER on IntegriCloud