[llvm] 36fa658 - [NFC] Fix "ambiguous overload for ‘operator=’"
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 30 00:43:43 PDT 2020
Author: Vitaly Buka
Date: 2020-10-30T00:43:32-07:00
New Revision: 36fa658db525d6c38e6a0ef0d70757686803b802
URL: https://github.com/llvm/llvm-project/commit/36fa658db525d6c38e6a0ef0d70757686803b802
DIFF: https://github.com/llvm/llvm-project/commit/36fa658db525d6c38e6a0ef0d70757686803b802.diff
LOG: [NFC] Fix "ambiguous overload for ‘operator=’"
>From D89768
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 705d0ed53daf..5fb713541812 100644
--- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -946,7 +946,7 @@ struct AllocaUseVisitor : PtrUseVisitor<AllocaUseVisitor> {
return;
if (!IsOffsetKnown) {
- AliasOffetMap[&I] = {};
+ AliasOffetMap[&I].reset();
} else {
auto Itr = AliasOffetMap.find(&I);
if (Itr == AliasOffetMap.end()) {
More information about the llvm-commits
mailing list