[llvm] [orc-rt] Fix C++ comments in C header. NFC. (PR #222887)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 01:58:43 PDT 2026
https://github.com/lhames created https://github.com/llvm/llvm-project/pull/222887
None
>From e56310bbbf7d987462ded7b2bd944cd1ffcd0cd6 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at apple.com>
Date: Fri, 11 Sep 2026 18:52:02 +1000
Subject: [PATCH] [orc-rt] Fix C++ comments in C header. NFC.
---
orc-rt/include/orc-rt-c/support/Error.h | 2 +-
orc-rt/include/orc-rt-c/support/WrapperFunction.h | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/orc-rt/include/orc-rt-c/support/Error.h b/orc-rt/include/orc-rt-c/support/Error.h
index 061616fb1fb99..0c74ea752b767 100644
--- a/orc-rt/include/orc-rt-c/support/Error.h
+++ b/orc-rt/include/orc-rt-c/support/Error.h
@@ -82,4 +82,4 @@ ORC_RT_C_EXPORT orc_rt_ErrorRef orc_rt_StringError_create(const char *ErrMsg)
ORC_RT_C_EXTERN_C_END
-#endif // ORC_RT_C_SUPPORT_ERROR_H
+#endif /* ORC_RT_C_SUPPORT_ERROR_H */
diff --git a/orc-rt/include/orc-rt-c/support/WrapperFunction.h b/orc-rt/include/orc-rt-c/support/WrapperFunction.h
index dd59bc38938f6..adad04a3d52b5 100644
--- a/orc-rt/include/orc-rt-c/support/WrapperFunction.h
+++ b/orc-rt/include/orc-rt-c/support/WrapperFunction.h
@@ -88,7 +88,8 @@ static inline orc_rt_WrapperFunctionBuffer
orc_rt_WrapperFunctionBufferAllocate(size_t Size) {
orc_rt_WrapperFunctionBuffer B;
B.Size = Size;
- // If Size is 0 ValuePtr must be 0 or it is considered an out-of-band error.
+ /* If Size is 0 ValuePtr must be 0 or it is considered an out-of-band
+ error. */
B.Data.ValuePtr = 0;
if (Size > sizeof(B.Data.Value))
B.Data.ValuePtr = (char *)malloc(Size);
@@ -102,7 +103,8 @@ static inline orc_rt_WrapperFunctionBuffer
orc_rt_CreateWrapperFunctionBufferFromRange(const char *Data, size_t Size) {
orc_rt_WrapperFunctionBuffer B;
B.Size = Size;
- // If Size is 0 ValuePtr must be 0 or it is considered an out-of-band error.
+ /* If Size is 0 ValuePtr must be 0 or it is considered an out-of-band
+ error. */
B.Data.ValuePtr = 0;
if (B.Size > sizeof(B.Data.Value)) {
char *Tmp = (char *)malloc(Size);
More information about the llvm-commits
mailing list