Add missing header for uint64_t
authorPaulo Matos <pmatos@igalia.com>
Mon, 22 May 2023 14:32:28 +0000 (16:32 +0200)
committerPaulo Matos <pmatos@igalia.com>
Mon, 22 May 2023 14:40:32 +0000 (16:40 +0200)
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

llvm/include/llvm/Pass.h

index 6445e16..44b6dd9 100644 (file)
@@ -28,6 +28,9 @@
 #ifndef LLVM_PASS_H
 #define LLVM_PASS_H
 
+#ifdef EXPENSIVE_CHECKS
+#include <cstdint>
+#endif
 #include <string>
 
 namespace llvm {