mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 05:48:32 +00:00
Use Overload of lookupTarget Accepting Triple (#6205)
The overload accepting a string/llvm::StringRef is deprecated and will be removed when LLVM 22 branches.
This commit is contained in:
1 parent
6d9ee96584
commit
5714f4deb2
2 files changed
+3
-3
No files matched your search
@@ -885,7 +885,7 @@ auto CompileSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
|
||||
// Validate the target before passing it to Clang.
|
||||
std::string target_error;
|
||||
const llvm::Target* target = llvm::TargetRegistry::lookupTarget(
|
||||
options_.codegen_options.target, target_error);
|
||||
llvm::Triple(options_.codegen_options.target), target_error);
|
||||
if (!target) {
|
||||
CARBON_DIAGNOSTIC(CompileTargetInvalid, Error, "invalid target: {0}",
|
||||
std::string);
|
||||
|
||||
Reference in new issue
Block a user