Do not read free'd memory when printing an error message.

llvm-svn: 20295
This commit is contained in:
Chris Lattner 2005-02-24 04:59:49 +00:00
parent c43b1d403e
commit 5f0df0c1e6
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ static struct PerFunctionInfo {
// 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);