[compiler-rt] Added include of common interfaces (PR #111374)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 06:06:36 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: None (gbMattN)

<details>
<summary>Changes</summary>

Pull request for issue #<!-- -->110823 
Including the file which defines the macros we use here. This would let user code only include this interface, rather than having to include two files.

---
Full diff: https://github.com/llvm/llvm-project/pull/111374.diff


1 Files Affected:

- (modified) compiler-rt/include/sanitizer/ubsan_interface.h (+2) 


``````````diff
diff --git a/compiler-rt/include/sanitizer/ubsan_interface.h b/compiler-rt/include/sanitizer/ubsan_interface.h
index 435eb1ae332cad..30a7fd875043db 100644
--- a/compiler-rt/include/sanitizer/ubsan_interface.h
+++ b/compiler-rt/include/sanitizer/ubsan_interface.h
@@ -13,6 +13,8 @@
 #ifndef SANITIZER_UBSAN_INTERFACE_H
 #define SANITIZER_UBSAN_INTERFACE_H
 
+#include <sanitizer/common_interface_defs.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif

``````````

</details>


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


More information about the llvm-commits mailing list