From 4c0ae9066fecbbd507162a880450641aa5c33098 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Mon, 12 Nov 2012 14:25:36 +0000 Subject: Fixup for r167558: Store raw pointer (instead of reference) to RelocMap in DIContext. This is needed to prevent crashes because of dangling reference if the clients don't provide RelocMap to DIContext constructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167728 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/llvm-dwarfdump/llvm-dwarfdump.cpp') diff --git a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index e73300a0cd..c0e3491509 100644 --- a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -162,7 +162,7 @@ static void DumpInput(const StringRef &Filename) { DebugLineSection, DebugStringSection, DebugRangesSection, - RelocMap)); + &RelocMap)); if (Address == -1ULL) { outs() << Filename << ":\tfile format " << Obj->getFileFormatName() << "\n\n"; -- cgit v1.2.3