From df4777060010ead66bd626fbc6ddbadbb2ce4b18 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. --- llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp index 686c3e8c165b..2a6583249cad 100644 --- a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp +++ b/llvm/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) {