From: Michael Liao Date: Thu, 13 Jun 2019 14:11:09 +0000 (+0000) Subject: Fix GCC compiler warning. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15a180999a3ab45ecce7fb32ed5be7338e18272b;p=llvm Fix GCC compiler warning. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363269 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/DebugInfoMetadata.h b/include/llvm/IR/DebugInfoMetadata.h index 5584c57fc9f..88cefff50c3 100644 --- a/include/llvm/IR/DebugInfoMetadata.h +++ b/include/llvm/IR/DebugInfoMetadata.h @@ -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 { - using FragInfo = struct DIExpression::FragmentInfo; +template <> struct DenseMapInfo { + using FragInfo = DIExpression::FragmentInfo; static const uint64_t MaxVal = std::numeric_limits::max(); static inline FragInfo getEmptyKey() { return {MaxVal, MaxVal}; }