From: Alkis Evlogimenos Date: Wed, 26 May 2004 22:50:28 +0000 (+0000) Subject: Do not pass a null pointer if this instruction is not prepended or X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fe3a093bc61ab11dd2c6c9e1e60f42f0a7ef48f3;p=oota-llvm.git Do not pass a null pointer if this instruction is not prepended or appended anywhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13798 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp index 4d1093b739d..cab281a7fcb 100644 --- a/lib/Transforms/Utils/CodeExtractor.cpp +++ b/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 {