[llvm] 0887443 - Add missing header for uint64_t

Paulo Matos via llvm-commits llvm-commits at lists.llvm.org
Mon May 22 07:40:43 PDT 2023


Author: Paulo Matos
Date: 2023-05-22T16:40:32+02:00
New Revision: 0887443b96618aaf6a7bc730a2119fd438ed5648

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

LOG: Add missing header for uint64_t

LLVM fails to build in some environments with EXPENSIVE_CHECKS
due to the use of uint64_t without including cstdint.

Differential Revision: https://reviews.llvm.org/D151101

Added: 
    

Modified: 
    llvm/include/llvm/Pass.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h
index 6445e16ab68f..44b6dd95cc27 100644
--- a/llvm/include/llvm/Pass.h
+++ b/llvm/include/llvm/Pass.h
@@ -28,6 +28,9 @@
 #ifndef LLVM_PASS_H
 #define LLVM_PASS_H
 
+#ifdef EXPENSIVE_CHECKS
+#include <cstdint>
+#endif
 #include <string>
 
 namespace llvm {


        


More information about the llvm-commits mailing list