[clang] dd27036 - [TableGen] Modernize OverloadInfo (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 4 13:35:37 PDT 2023
Author: Kazu Hirata
Date: 2023-09-04T13:35:26-07:00
New Revision: dd27036ff7292c90c4a0e08494579980cfa6922e
URL: https://github.com/llvm/llvm-project/commit/dd27036ff7292c90c4a0e08494579980cfa6922e
DIFF: https://github.com/llvm/llvm-project/commit/dd27036ff7292c90c4a0e08494579980cfa6922e.diff
LOG: [TableGen] Modernize OverloadInfo (NFC)
Added:
Modified:
clang/utils/TableGen/NeonEmitter.cpp
Removed:
################################################################################
diff --git a/clang/utils/TableGen/NeonEmitter.cpp b/clang/utils/TableGen/NeonEmitter.cpp
index 936724b9ce38f4..3c891dbe9d7aa0 100644
--- a/clang/utils/TableGen/NeonEmitter.cpp
+++ b/clang/utils/TableGen/NeonEmitter.cpp
@@ -2049,10 +2049,10 @@ void NeonEmitter::genOverloadTypeCheckCode(raw_ostream &OS,
// definitions may extend the number of permitted types (i.e. augment the
// Mask). Use std::map to avoid sorting the table by hash number.
struct OverloadInfo {
- uint64_t Mask;
- int PtrArgNum;
- bool HasConstPtr;
- OverloadInfo() : Mask(0ULL), PtrArgNum(0), HasConstPtr(false) {}
+ uint64_t Mask = 0ULL;
+ int PtrArgNum = 0;
+ bool HasConstPtr = false;
+ OverloadInfo() = default;
};
std::map<std::string, OverloadInfo> OverloadMap;
More information about the cfe-commits
mailing list