Skip to content

Commit 92fbfc2

Browse files
authored
[LLDB] Fix build after TargetInfo::adjust signature change (#147727)
Fixes buildbot failure on lldb-x86_64-debian due to #146620 https://lab.llvm.org/buildbot/#/builders/162/builds/26414 Update LLDB calls to TargetInfo::adjust() to use the new 3-parameter signature introduced in beea2a9. Pass nullptr for AuxTarget since LLDB doesn't use auxiliary targets in these contexts.
1 parent 8905b1c commit 92fbfc2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ ClangExpressionParser::ClangExpressionParser(
831831
// FIXME: We shouldn't need to do this, the target should be immutable once
832832
// created. This complexity should be lifted elsewhere.
833833
m_compiler->getTarget().adjust(m_compiler->getDiagnostics(),
834-
m_compiler->getLangOpts());
834+
m_compiler->getLangOpts(), /*AuxTarget=*/nullptr);
835835

836836
// 5. Set up the diagnostic buffer for reporting errors
837837
auto diag_mgr = new ClangDiagnosticManagerAdapter(

lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ ClangModulesDeclVendor::Create(Target &target) {
757757
if (!instance->hasTarget())
758758
return nullptr;
759759

760-
instance->getTarget().adjust(*diagnostics_engine, instance->getLangOpts());
760+
instance->getTarget().adjust(*diagnostics_engine, instance->getLangOpts(), /*AuxTarget=*/nullptr);
761761

762762
if (!action->BeginSourceFile(*instance,
763763
instance->getFrontendOpts().Inputs[0]))

0 commit comments

Comments
 (0)