[llvm-commits] CVS: llvm/tools/llvm-upgrade/UpgradeParser.y
Reid Spencer
reid at x10sys.com
Sun Apr 15 20:04:34 PDT 2007
Changes in directory llvm/tools/llvm-upgrade:
UpgradeParser.y updated: 1.83 -> 1.84
---
Log message:
For PR1336: http://llvm.org/PR1336 :
Functions without names deserve to be created too. This fixes:
test/CodeGen/Generic/vector-constantexpr.ll
---
Diffs of the changes: (+5 -0)
UpgradeParser.y | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/tools/llvm-upgrade/UpgradeParser.y
diff -u llvm/tools/llvm-upgrade/UpgradeParser.y:1.83 llvm/tools/llvm-upgrade/UpgradeParser.y:1.84
--- llvm/tools/llvm-upgrade/UpgradeParser.y:1.83 Sun Apr 15 21:56:33 2007
+++ llvm/tools/llvm-upgrade/UpgradeParser.y Sun Apr 15 22:04:13 2007
@@ -3034,8 +3034,13 @@
Fn = new Function(FT, CurFun.Linkage, FunctionName, M);
InsertValue(Fn, CurModule.Values);
}
+ } else {
+ // There's no conflict, just define the function
+ Fn = new Function(FT, CurFun.Linkage, FunctionName, M);
+ InsertValue(Fn, CurModule.Values);
}
+
CurFun.FunctionStart(Fn);
if (CurFun.isDeclare) {
More information about the llvm-commits
mailing list