[NFC] Fix "ambiguous overload for ‘operator=’"
authorVitaly Buka <vitalybuka@google.com>
Fri, 30 Oct 2020 07:36:50 +0000 (00:36 -0700)
committerVitaly Buka <vitalybuka@google.com>
Fri, 30 Oct 2020 07:36:50 +0000 (00:36 -0700)
llvm/lib/Transforms/Coroutines/CoroFrame.cpp

index 98a85fe..705d0ed 100644 (file)
@@ -954,7 +954,7 @@ private:
       } else if (Itr->second.hasValue() && Itr->second.getValue() != Offset) {
         // If we have seen two different possible values for this alias, we set
         // it to empty.
-        AliasOffetMap[&I] = {};
+        AliasOffetMap[&I].reset();
       }
     }
   }