[llvm] 1455259 - [NFC] Fix "ambiguous overload for ‘operator=’"

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 30 00:38:44 PDT 2020


Author: Vitaly Buka
Date: 2020-10-30T00:36:50-07:00
New Revision: 1455259546996dd86236ef8c70bc65a27b457ba7

URL: https://github.com/llvm/llvm-project/commit/1455259546996dd86236ef8c70bc65a27b457ba7
DIFF: https://github.com/llvm/llvm-project/commit/1455259546996dd86236ef8c70bc65a27b457ba7.diff

LOG: [NFC] Fix "ambiguous overload for ‘operator=’"

Added: 
    

Modified: 
    llvm/lib/Transforms/Coroutines/CoroFrame.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
index 98a85fe2ffff..705d0ed53daf 100644
--- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -954,7 +954,7 @@ struct AllocaUseVisitor : PtrUseVisitor<AllocaUseVisitor> {
       } else if (Itr->second.hasValue() && Itr->second.getValue() != Offset) {
         // If we have seen two 
diff erent possible values for this alias, we set
         // it to empty.
-        AliasOffetMap[&I] = {};
+        AliasOffetMap[&I].reset();
       }
     }
   }


        


More information about the llvm-commits mailing list