diff options
author | Melanie Blower <melanie.blower@intel.com> | 2021-06-29 11:44:49 -0400 |
---|---|---|
committer | Melanie Blower <melanie.blower@intel.com> | 2021-06-29 13:26:23 -0400 |
commit | aaba37187fda7f5a7fdc4c1e6129cbaaa1bbf709 (patch) | |
tree | 7d78ee2919d455919ef68878dea4c04bd21bd760 /clang/lib/Interpreter/Interpreter.cpp | |
parent | 952944c12c0aa917e97805e929b5cd4e40866f91 (diff) | |
download | llvm-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.cpp | 2 |
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); } |