[llvm-commits] CVS: llvm/tools/llvm-upgrade/UpgradeParser.y
Reid Spencer
reid at x10sys.com
Wed Apr 11 05:10:26 PDT 2007
Changes in directory llvm/tools/llvm-upgrade:
UpgradeParser.y updated: 1.80 -> 1.81
---
Log message:
Fix a crash-by-unknown-exception caused by attempting to use a null pointer
as the key for a map insertion.
---
Diffs of the changes: (+2 -1)
UpgradeParser.y | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/tools/llvm-upgrade/UpgradeParser.y
diff -u llvm/tools/llvm-upgrade/UpgradeParser.y:1.80 llvm/tools/llvm-upgrade/UpgradeParser.y:1.81
--- llvm/tools/llvm-upgrade/UpgradeParser.y:1.80 Tue Apr 10 21:44:20 2007
+++ llvm/tools/llvm-upgrade/UpgradeParser.y Wed Apr 11 07:10:08 2007
@@ -774,7 +774,8 @@
D = ValID::create((int)CurModule.Types.size());
D.S.copy(Sign);
- CurModule.NamedTypeSigns[Name] = Sign;
+ if (Name)
+ CurModule.NamedTypeSigns[Name] = Sign;
std::map<ValID, PATypeHolder>::iterator I =
CurModule.LateResolveTypes.find(D);
More information about the llvm-commits
mailing list