diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td index 9deeb7b326510..28f11e81cb4c8 100644 --- a/llvm/include/llvm/IR/RuntimeLibcalls.td +++ b/llvm/include/llvm/IR/RuntimeLibcalls.td @@ -402,7 +402,6 @@ def MEMCPY_ALIGN_4 : RuntimeLibcall; // Define implementation default libcalls //-------------------------------------------------------------------- -defset list AllDefaultRuntimeLibcallImpls = { let IsDefault = true in { //-------------------------------------------------------------------- @@ -908,7 +907,6 @@ def memset : RuntimeLibcallImpl; def calloc : RuntimeLibcallImpl; } // End let IsDefault = true -} // End defset AllDefaultRuntimeLibcallImpls //-------------------------------------------------------------------- // Define implementation other libcalls @@ -999,8 +997,8 @@ defset list LibmF128FiniteLibcalls = { // unreasonable defaults like reporting f80 calls on most targets when // they are relevant to only one. -defvar AllDefaultLibCalls = - !foreach(entry, AllDefaultRuntimeLibcallImpls, entry.Provides); +defvar AllDefaultRuntimeLibcallImpls + = !filter(entry, !instances(), entry.IsDefault); // Exist in libgcc and compiler-rt for 64-bit targets, or if // COMPILER_RT_ENABLE_SOFTWARE_INT128.