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 | 4c0ae9066fecbbd507162a880450641aa5c33098 (patch) | |
tree | 9fd68167d4944186f5015d3da5eec854da240b02 /include/llvm/DebugInfo | |
parent | 30d8f0e9770db76f19273419c57fe112129b145a (diff) |
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
Diffstat (limited to 'include/llvm/DebugInfo')
-rw-r--r-- | include/llvm/DebugInfo/DIContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/DebugInfo/DIContext.h b/include/llvm/DebugInfo/DIContext.h index 26bd1f6275..23223414bf 100644 --- a/include/llvm/DebugInfo/DIContext.h +++ b/include/llvm/DebugInfo/DIContext.h @@ -109,7 +109,7 @@ public: StringRef lineSection = StringRef(), StringRef stringSection = StringRef(), StringRef rangeSection = StringRef(), - const RelocAddrMap &Map = RelocAddrMap()); + const RelocAddrMap *Map = 0); virtual void dump(raw_ostream &OS) = 0; |