]> granicus.if.org Git - llvm/commitdiff
Fix GCC compiler warning. NFC.
authorMichael Liao <michael.hliao@gmail.com>
Thu, 13 Jun 2019 14:11:09 +0000 (14:11 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Thu, 13 Jun 2019 14:11:09 +0000 (14:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363269 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/DebugInfoMetadata.h

index 5584c57fc9f073443d4e9f57f49db410b5fd493b..88cefff50c3b5573fe9b3e7644555b26865e9e02 100644 (file)
@@ -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}; }