forked from OSchip/llvm-project
Do not read free'd memory when printing an error message.
llvm-svn: 20295
This commit is contained in:
parent
c43b1d403e
commit
5f0df0c1e6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue