diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-05-23 08:39:48 +0100 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2022-06-07 17:39:40 -0700 |
commit | a517f3439671f18327ada0f5d8ca328934cc337e (patch) | |
tree | 3b95fc260ee286450b5d92b244178bfb7839219f | |
parent | 4d039a7a71899038b3bc6ed6fe5a8a48d915caa0 (diff) | |
download | llvm-a517f3439671f18327ada0f5d8ca328934cc337e.tar.gz |
[Support] Add missing <cstdint> header to Base64.h
Without the change llvm build fails on this week's gcc-13 snapshot as:
[ 91%] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/Base64Test.cpp.o
In file included from llvm/unittests/Support/Base64Test.cpp:14:
llvm/include/llvm/Support/Base64.h: In function 'std::string llvm::encodeBase64(const InputBytes&)':
llvm/include/llvm/Support/Base64.h:29:5: error: 'uint32_t' was not declared in this scope
29 | uint32_t x = ((unsigned char)Bytes[i] << 16) |
| ^~~~~~~~
(cherry picked from commit 5e9be93566f39ee6cecd579401e453eccfbe81e5)
-rw-r--r-- | llvm/include/llvm/Support/Base64.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Base64.h b/llvm/include/llvm/Support/Base64.h index 62064a35aa34..da4ae1688574 100644 --- a/llvm/include/llvm/Support/Base64.h +++ b/llvm/include/llvm/Support/Base64.h @@ -13,6 +13,7 @@ #ifndef LLVM_SUPPORT_BASE64_H #define LLVM_SUPPORT_BASE64_H +#include <cstdint> #include <string> namespace llvm { |