[llvm] e5804a5 - [ADT] bit.h - replace <stdint.h> with <cstdint>
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 12:45:17 PDT 2022
Author: Simon Pilgrim
Date: 2022-09-01T20:44:56+01:00
New Revision: e5804a5a6149c9ea33fe269d447b4da512580c58
URL: https://github.com/llvm/llvm-project/commit/e5804a5a6149c9ea33fe269d447b4da512580c58
DIFF: https://github.com/llvm/llvm-project/commit/e5804a5a6149c9ea33fe269d447b4da512580c58.diff
LOG: [ADT] bit.h - replace <stdint.h> with <cstdint>
This is a C++ header after all.
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 43f585b65cabd..442f3795841ac 100644
--- a/llvm/include/llvm/ADT/bit.h
+++ b/llvm/include/llvm/ADT/bit.h
@@ -14,11 +14,10 @@
#ifndef LLVM_ADT_BIT_H
#define LLVM_ADT_BIT_H
+#include <cstdint>
#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