[all-commits] [llvm/llvm-project] 2bcb84: [orc-rt] Require ORC_RT_LOG format strings to be s...

Lang Hames via All-commits all-commits at lists.llvm.org
Sun Jul 12 23:36:11 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bcb848904ae3a2bd7bd3bfb8a8f562529ccb318
      https://github.com/llvm/llvm-project/commit/2bcb848904ae3a2bd7bd3bfb8a8f562529ccb318
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M orc-rt/include/orc-rt-c/Logging.h

  Log Message:
  -----------
  [orc-rt] Require ORC_RT_LOG format strings to be string literals (#209090)

os_log needs the format string as a literal (it builds format metadata
at the call site), while the none and printf backends accept a runtime
const char*. That mismatch let a non-literal format compile on
none/printf and fail only on an os_log build. Enforce the literal
requirement uniformly in the ORC_RT_LOG macro via an unevaluated
sizeof("" ...) check, so it is caught at the call site on every backend.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list