diff options
author | Melanie Blower <melanie.blower@intel.com> | 2021-06-08 16:55:54 -0400 |
---|---|---|
committer | Melanie Blower <melanie.blower@intel.com> | 2021-06-28 12:26:53 -0400 |
commit | 2c02b0c3f45414ac6c64583e006a26113c028304 (patch) | |
tree | 86fc4f61a897aac71c25f878772828dadc0bd52a /clang/lib/Interpreter/Interpreter.cpp | |
parent | 931e95687d6df71aa8a33376fd2d566c8153be24 (diff) | |
download | llvm-2c02b0c3f45414ac6c64583e006a26113c028304.zip llvm-2c02b0c3f45414ac6c64583e006a26113c028304.tar.gz llvm-2c02b0c3f45414ac6c64583e006a26113c028304.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); } |