[llvm] r363269 - Fix GCC compiler warning. NFC.
Michael Liao via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 07:11:09 PDT 2019
Author: hliao
Date: Thu Jun 13 07:11:09 2019
New Revision: 363269
URL: http://llvm.org/viewvc/llvm-project?rev=363269&view=rev
Log:
Fix GCC compiler warning. NFC.
Modified:
llvm/trunk/include/llvm/IR/DebugInfoMetadata.h
Modified: llvm/trunk/include/llvm/IR/DebugInfoMetadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DebugInfoMetadata.h?rev=363269&r1=363268&r2=363269&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DebugInfoMetadata.h (original)
+++ llvm/trunk/include/llvm/IR/DebugInfoMetadata.h Thu Jun 13 07:11:09 2019
@@ -2561,19 +2561,19 @@ public:
};
inline bool operator==(const DIExpression::FragmentInfo &A,
- const struct DIExpression::FragmentInfo &B) {
+ const DIExpression::FragmentInfo &B) {
return std::tie(A.SizeInBits, A.OffsetInBits) ==
std::tie(B.SizeInBits, B.OffsetInBits);
}
-inline bool operator<(const struct DIExpression::FragmentInfo &A,
- const struct DIExpression::FragmentInfo &B) {
+inline bool operator<(const DIExpression::FragmentInfo &A,
+ const DIExpression::FragmentInfo &B) {
return std::tie(A.SizeInBits, A.OffsetInBits) <
std::tie(B.SizeInBits, B.OffsetInBits);
}
-template <> struct DenseMapInfo<struct DIExpression::FragmentInfo> {
- using FragInfo = struct DIExpression::FragmentInfo;
+template <> struct DenseMapInfo<DIExpression::FragmentInfo> {
+ using FragInfo = DIExpression::FragmentInfo;
static const uint64_t MaxVal = std::numeric_limits<uint64_t>::max();
static inline FragInfo getEmptyKey() { return {MaxVal, MaxVal}; }
More information about the llvm-commits
mailing list