summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DIContext.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-11-12 14:25:36 +0000
committerAlexey Samsonov <samsonov@google.com>2012-11-12 14:25:36 +0000
commit9cb13d59b73a6b04466ad84a7c0e04d4d18413f8 (patch)
tree51b56d783cffb9600a78e184dcd8abb126d34cd3 /llvm/lib/DebugInfo/DIContext.cpp
parentc835b9e4a3858d8e19e09e67827f48f93b456abd (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud