aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorMelanie Blower <melanie.blower@intel.com>2021-06-29 11:44:49 -0400
committerMelanie Blower <melanie.blower@intel.com>2021-06-29 13:26:23 -0400
commitaaba37187fda7f5a7fdc4c1e6129cbaaa1bbf709 (patch)
tree7d78ee2919d455919ef68878dea4c04bd21bd760 /clang/lib/Interpreter/Interpreter.cpp
parent952944c12c0aa917e97805e929b5cd4e40866f91 (diff)
downloadllvm-aaba37187fda7f5a7fdc4c1e6129cbaaa1bbf709.zip
llvm-aaba37187fda7f5a7fdc4c1e6129cbaaa1bbf709.tar.gz
llvm-aaba37187fda7f5a7fdc4c1e6129cbaaa1bbf709.tar.bz2
[clang][PATCH][nfc] Refactor TargetInfo::adjust to pass DiagnosticsEngine to allow diagnostics on target-unsupported options
Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D104729
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r--clang/lib/Interpreter/Interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index 711a5e9..768847f 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -110,7 +110,7 @@ CreateCI(const llvm::opt::ArgStringList &Argv) {
"Initialization failed. "
"Target is missing");
- Clang->getTarget().adjust(Clang->getLangOpts());
+ Clang->getTarget().adjust(Clang->getDiagnostics(), Clang->getLangOpts());
return std::move(Clang);
}