[llvm-commits] CVS: llvm/lib/Transforms/Utils/CodeExtractor.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed May 26 17:54:02 PDT 2004
Changes in directory llvm/lib/Transforms/Utils:
CodeExtractor.cpp updated: 1.23 -> 1.24
---
Log message:
Do not pass a null pointer if this instruction is not prepended or
appended anywhere.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff -u llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.23 llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.24
--- llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.23 Wed May 12 11:26:18 2004
+++ llvm/lib/Transforms/Utils/CodeExtractor.cpp Wed May 26 17:50:28 2004
@@ -394,7 +394,7 @@
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 @@
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 {
More information about the llvm-commits
mailing list