[llvm] 6829cd1 - [LLVM] Add missing stdint include to Bit.h

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 1 02:18:42 PDT 2022


Author: David Spickett
Date: 2022-09-01T09:17:35Z
New Revision: 6829cd17b5689aa78b79bafd87a4765592619797

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

LOG: [LLVM] Add missing stdint include to Bit.h

To fix failing builds on Windows on Arm:
https://lab.llvm.org/staging/#/builders/59/builds/928/steps/4/logs/stdio

<...>/ADT/bit.h(50,5): error: unknown type name 'uint32_t'
    uint32_t v = Value;
    ^

Added: 
    

Modified: 
    llvm/include/llvm/ADT/bit.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/bit.h b/llvm/include/llvm/ADT/bit.h
index 2fb10ef672a5..43f585b65cab 100644
--- a/llvm/include/llvm/ADT/bit.h
+++ b/llvm/include/llvm/ADT/bit.h
@@ -17,6 +17,8 @@
 #include <cstring>
 #include <type_traits>
 
+#include <stdint.h>
+
 namespace llvm {
 
 // This implementation of bit_cast is 
diff erent from the C++20 one in two ways:


        


More information about the llvm-commits mailing list