summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
index a2231307381..f19eff64374 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
@@ -486,7 +486,7 @@ ClangExpressionParser::ClangExpressionParser(ExecutionContextScope *exe_scope,
m_file_manager.reset(new clang::FileManager(file_system_options));
if (!m_compiler->hasSourceManager())
- m_compiler->createSourceManager(*m_file_manager.get());
+ m_compiler->createSourceManager(*m_file_manager);
m_compiler->createFileManager();
m_compiler->createPreprocessor(TU_Complete);
@@ -1051,7 +1051,7 @@ lldb_private::Status ClangExpressionParser::PrepareForExecution(
std::unique_ptr<llvm::Module> llvm_module_ap(
m_code_generator->ReleaseModule());
- if (!llvm_module_ap.get()) {
+ if (!llvm_module_ap) {
err.SetErrorToGenericError();
err.SetErrorString("IR doesn't contain a module");
return err;
OpenPOWER on IntegriCloud