diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-11-12 14:25:36 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-11-12 14:25:36 +0000 |
commit | 9cb13d59b73a6b04466ad84a7c0e04d4d18413f8 (patch) | |
tree | 51b56d783cffb9600a78e184dcd8abb126d34cd3 /llvm/lib/DebugInfo/DIContext.cpp | |
parent | c835b9e4a3858d8e19e09e67827f48f93b456abd (diff) | |
download | bcm5719-llvm-9cb13d59b73a6b04466ad84a7c0e04d4d18413f8.tar.gz bcm5719-llvm-9cb13d59b73a6b04466ad84a7c0e04d4d18413f8.zip |
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.
llvm-svn: 167728
Diffstat (limited to 'llvm/lib/DebugInfo/DIContext.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DIContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DIContext.cpp b/llvm/lib/DebugInfo/DIContext.cpp index 691a92c392c..6484abcfe82 100644 --- a/llvm/lib/DebugInfo/DIContext.cpp +++ b/llvm/lib/DebugInfo/DIContext.cpp @@ -20,7 +20,7 @@ DIContext *DIContext::getDWARFContext(bool isLittleEndian, StringRef lineSection, StringRef stringSection, StringRef rangeSection, - const RelocAddrMap &Map) { + const RelocAddrMap *Map) { return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection, aRangeSection, lineSection, stringSection, rangeSection, Map); |