[llvm] Add __attribute__((warn_unused_result)) to LLVMErrorRef (PR #87025)
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 29 05:50:09 PDT 2024
================
@@ -36,4 +36,18 @@
#define LLVM_C_EXTERN_C_END LLVM_C_STRICT_PROTOTYPES_END
#endif
+#ifndef LLVM_HAS_ATTRIBUTE
----------------
AaronBallman wrote:
Hmm, is this the best place for the code to live given the comment at the top of the file: `This file defines an 'extern "C"' wrapper` ?
Maybe this belongs in `Core.h`? or some new file for compiler-based macro definitions?
https://github.com/llvm/llvm-project/pull/87025
More information about the llvm-commits
mailing list