[llvm] df47770 - [ORC] Explicitly convert to ArrayRefs to silence errors.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 03:48:56 PDT 2021
Author: Lang Hames
Date: 2021-07-19T20:48:30+10:00
New Revision: df4777060010ead66bd626fbc6ddbadbb2ce4b18
URL: https://github.com/llvm/llvm-project/commit/df4777060010ead66bd626fbc6ddbadbb2ce4b18
DIFF: https://github.com/llvm/llvm-project/commit/df4777060010ead66bd626fbc6ddbadbb2ce4b18.diff
LOG: [ORC] Explicitly convert to ArrayRefs to silence errors.
This aims to fix build failures like
https://lab.llvm.org/buildbot#builders/165/builds/3761.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
Removed:
################################################################################
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<const char *, const char *> RequiredCXXAliases[] = {
{"___cxa_atexit", "___orc_rt_macho_cxa_atexit"}};
- return RequiredCXXAliases;
+ return ArrayRef<std::pair<const char *, const char *>>(RequiredCXXAliases);
}
ArrayRef<std::pair<const char *, const char *>>
@@ -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<std::pair<const char *, const char *>>(
+ StandardRuntimeUtilityAliases);
}
bool MachOPlatform::supportedTarget(const Triple &TT) {
More information about the llvm-commits
mailing list