aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorMelanie Blower <melanie.blower@intel.com>2021-06-28 15:09:27 -0400
committerMelanie Blower <melanie.blower@intel.com>2021-06-28 15:09:53 -0400
commit2dbe1c675fe94eeb7973dcc25b049d25f4ca4fa0 (patch)
treeae02afd8be991184fe586d80857bb76559df39c8 /clang/lib/Interpreter/Interpreter.cpp
parent614b46e4dcab0d095e05f8b4da45ef935b7b86b4 (diff)
downloadllvm-2dbe1c675fe94eeb7973dcc25b049d25f4ca4fa0.zip
llvm-2dbe1c675fe94eeb7973dcc25b049d25f4ca4fa0.tar.gz
llvm-2dbe1c675fe94eeb7973dcc25b049d25f4ca4fa0.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);
}