[llvm] e1b88a9 - [llvm-exegesis][NFC] imports `<cerrno>`

Christopher Di Bella via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 9 11:06:17 PDT 2023


Author: Christopher Di Bella
Date: 2023-07-09T11:04:56-07:00
New Revision: e1b88a979468a63967bba7765dec928de7446381

URL: https://github.com/llvm/llvm-project/commit/e1b88a979468a63967bba7765dec928de7446381
DIFF: https://github.com/llvm/llvm-project/commit/e1b88a979468a63967bba7765dec928de7446381.diff

LOG: [llvm-exegesis][NFC] imports `<cerrno>`

`SubprocessMemory.cpp` depends on `errno` and was likely getting it via
a transitive include, but this prevents building with modules.

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp b/llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp
index 97ae0078d7e591..a49fa077257d00 100644
--- a/llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp
+++ b/llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp
@@ -9,6 +9,7 @@
 #include "SubprocessMemory.h"
 #include "Error.h"
 #include "llvm/Support/Error.h"
+#include <cerrno>
 
 #ifdef __linux__
 #include <fcntl.h>


        


More information about the llvm-commits mailing list