[llvm] [SystemZ][z/OS] Add missing include header to AutoConvert.cpp to fix build (PR #84909)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 06:25:03 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Fanbo Meng (fanbo-meng)

<details>
<summary>Changes</summary>

https://github.com/llvm/llvm-project/commit/ba13fa2a5d57581bff1a7e9322234af30f4882f6 added usages of `errnoAsErrorCode()` to AutoConvert.cpp, need to include Error.h header to fix build failure.

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


1 Files Affected:

- (modified) llvm/lib/Support/AutoConvert.cpp (+1) 


``````````diff
diff --git a/llvm/lib/Support/AutoConvert.cpp b/llvm/lib/Support/AutoConvert.cpp
index 74842e9167bde5..c509284ee916ef 100644
--- a/llvm/lib/Support/AutoConvert.cpp
+++ b/llvm/lib/Support/AutoConvert.cpp
@@ -14,6 +14,7 @@
 #ifdef __MVS__
 
 #include "llvm/Support/AutoConvert.h"
+#include "llvm/Support/Error.h"
 #include <cassert>
 #include <fcntl.h>
 #include <sys/stat.h>

``````````

</details>


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


More information about the llvm-commits mailing list