[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 23 21:00:06 PST 2005
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.212 -> 1.213
---
Log message:
Do not read free'd memory when printing an error message.
---
Diffs of the changes: (+1 -1)
llvmAsmParser.y | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.212 llvm/lib/AsmParser/llvmAsmParser.y:1.213
--- llvm/lib/AsmParser/llvmAsmParser.y:1.212 Tue Feb 22 17:13:58 2005
+++ llvm/lib/AsmParser/llvmAsmParser.y Wed Feb 23 22:59:49 2005
@@ -156,7 +156,7 @@
// Any forward referenced blocks left?
if (!BBForwardRefs.empty())
ThrowException("Undefined reference to label " +
- BBForwardRefs.begin()->second.first.getName());
+ BBForwardRefs.begin()->first->getName());
// Resolve all forward references now.
ResolveDefinitions(LateResolveValues, &CurModule.LateResolveValues);
More information about the llvm-commits
mailing list