diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:32:52 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:32:52 +0000 | 
| commit | 08bbd35a80bf7765fe0d3043f9eb5a2f2786b649 (patch) | |
| tree | 80108f0f128657f8623f8f66ad9735b4d88e7b47 /lib/DebugInfo/PDB/Native/NativeSession.cpp | |
| parent | 7c7aba6e5fef47a01a136be655b0a92cfd7090f6 (diff) | |
Notes
Diffstat (limited to 'lib/DebugInfo/PDB/Native/NativeSession.cpp')
| -rw-r--r-- | lib/DebugInfo/PDB/Native/NativeSession.cpp | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/lib/DebugInfo/PDB/Native/NativeSession.cpp b/lib/DebugInfo/PDB/Native/NativeSession.cpp index 7e6843bceb7d..3ab381e76e62 100644 --- a/lib/DebugInfo/PDB/Native/NativeSession.cpp +++ b/lib/DebugInfo/PDB/Native/NativeSession.cpp @@ -70,12 +70,11 @@ uint64_t NativeSession::getLoadAddress() const { return 0; }  void NativeSession::setLoadAddress(uint64_t Address) {} -std::unique_ptr<PDBSymbolExe> NativeSession::getGlobalScope() const { -  auto RawSymbol = -      llvm::make_unique<NativeExeSymbol>(const_cast<NativeSession &>(*this)); +std::unique_ptr<PDBSymbolExe> NativeSession::getGlobalScope() { +  auto RawSymbol = llvm::make_unique<NativeExeSymbol>(*this, 0);    auto PdbSymbol(PDBSymbol::create(*this, std::move(RawSymbol)));    std::unique_ptr<PDBSymbolExe> ExeSymbol( -    static_cast<PDBSymbolExe *>(PdbSymbol.release())); +      static_cast<PDBSymbolExe *>(PdbSymbol.release()));    return ExeSymbol;  } | 
