[llvm] RuntimeLibcalls: Fix missing const on getLibcallNames (PR #143074)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 02:10:06 PDT 2025


================
@@ -68,10 +68,7 @@ struct RuntimeLibcallsInfo {
     return LibcallCallingConvs[Call];
   }
 
-  iterator_range<const char **> getLibcallNames() {
-    return llvm::make_range(LibcallRoutineNames,
-                            LibcallRoutineNames + RTLIB::UNKNOWN_LIBCALL);
-  }
+  ArrayRef<const char *> getLibcallNames() const { return LibcallRoutineNames; }
----------------
nikic wrote:

If I'm reading this right, this is now going to include the entry for UNKNOWN_LIBCALL as well. Is that intentional?

https://github.com/llvm/llvm-project/pull/143074


More information about the llvm-commits mailing list