From b51bac9172b0434e950546979f1b04f244d4b82d Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 19 Jul 2021 20:44:17 +1000 Subject: [PATCH] [ORC] Explicitly convert to ArrayRefs to silence errors. This aims to fix build failures like https://lab.llvm.org/buildbot#builders/165/builds/3761. --- lib/ExecutionEngine/Orc/MachOPlatform.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ExecutionEngine/Orc/MachOPlatform.cpp b/lib/ExecutionEngine/Orc/MachOPlatform.cpp index 686c3e8c165..2a6583249ca 100644 --- a/lib/ExecutionEngine/Orc/MachOPlatform.cpp +++ b/lib/ExecutionEngine/Orc/MachOPlatform.cpp @@ -229,7 +229,7 @@ MachOPlatform::requiredCXXAliases() { static const std::pair RequiredCXXAliases[] = { {"___cxa_atexit", "___orc_rt_macho_cxa_atexit"}}; - return RequiredCXXAliases; + return ArrayRef>(RequiredCXXAliases); } ArrayRef> @@ -239,7 +239,8 @@ MachOPlatform::standardRuntimeUtilityAliases() { {"___orc_rt_run_program", "___orc_rt_macho_run_program"}, {"___orc_rt_log_error", "___orc_rt_log_error_to_stderr"}}; - return StandardRuntimeUtilityAliases; + return ArrayRef>( + StandardRuntimeUtilityAliases); } bool MachOPlatform::supportedTarget(const Triple &TT) {