[clang] 4816915 - [Serialization] Add missing includes for CHAR_BIT
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu May 19 01:04:33 PDT 2022
Author: Sam McCall
Date: 2022-05-19T10:04:25+02:00
New Revision: 481691572d1fa6ad56ab24c73000396fd8babef8
URL: https://github.com/llvm/llvm-project/commit/481691572d1fa6ad56ab24c73000396fd8babef8
DIFF: https://github.com/llvm/llvm-project/commit/481691572d1fa6ad56ab24c73000396fd8babef8.diff
LOG: [Serialization] Add missing includes for CHAR_BIT
Added:
Modified:
clang/include/clang/Serialization/SourceLocationEncoding.h
clang/unittests/Serialization/SourceLocationEncodingTest.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Serialization/SourceLocationEncoding.h b/clang/include/clang/Serialization/SourceLocationEncoding.h
index c56ce06ab8c2..ff16a122e496 100644
--- a/clang/include/clang/Serialization/SourceLocationEncoding.h
+++ b/clang/include/clang/Serialization/SourceLocationEncoding.h
@@ -26,6 +26,7 @@
//
//===----------------------------------------------------------------------===//
+#include <climits>
#include "clang/Basic/SourceLocation.h"
#ifndef LLVM_CLANG_SERIALIZATION_SOURCELOCATIONENCODING_H
diff --git a/clang/unittests/Serialization/SourceLocationEncodingTest.cpp b/clang/unittests/Serialization/SourceLocationEncodingTest.cpp
index bac43a21d1ec..3839def0c600 100644
--- a/clang/unittests/Serialization/SourceLocationEncodingTest.cpp
+++ b/clang/unittests/Serialization/SourceLocationEncodingTest.cpp
@@ -9,6 +9,7 @@
#include "clang/Serialization/SourceLocationEncoding.h"
#include "gtest/gtest.h"
+#include <climits>
using namespace llvm;
using namespace clang;
More information about the cfe-commits
mailing list