Skip to content

Commit d3234bb

Browse files
committed
rebase to latest main
Change-Id: I832fdde9cfe4a69b09b414b5b45fb18b02475444
1 parent 877729d commit d3234bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/target/llvm/llvm_instance.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ LLVMTargetInfo::LLVMTargetInfo(LLVMInstance& instance, const TargetJSON& target)
262262
}
263263

264264
// LLVM JIT engine options
265-
if (const Optional<String>& v = target->GetAttr<String>("jit")) {
265+
if (const auto& v = Downcast<Optional<String>>(target.Get("jit"))) {
266266
String value = v.value();
267267
if ((value == "mcjit") || (value == "orcjit")) {
268268
jit_engine_ = value;

src/target/parsers/aprofile.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static TargetFeatures GetFeatures(TargetJSON target) {
9090

9191
// Check that LLVM has been compiled with the correct target support
9292
auto llvm_instance = std::make_unique<codegen::LLVMInstance>();
93-
codegen::LLVMTargetInfo llvm_backend(*llvm_instance, "llvm");
93+
codegen::LLVMTargetInfo llvm_backend(*llvm_instance, {{"kind", String("llvm")}});
9494
Array<String> targets = llvm_backend.GetAllLLVMTargets();
9595
if ((IsAArch64(mtriple) && !CheckContains(targets, "aarch64")) ||
9696
(IsAArch32(mtriple, mcpu) && !CheckContains(targets, "arm"))) {

0 commit comments

Comments
 (0)