diff --git a/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp b/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp index 501e01138e9..de619383593 100644 --- a/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp +++ b/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp @@ -345,7 +345,7 @@ void TruncInstCombine::ReduceExpressionDag(Type *SclTy) { // 1. Update Old-TruncInst -> New-TruncInst. // 2. Remove Old-TruncInst (if New node is not TruncInst). // 3. Add New-TruncInst (if Old node was not TruncInst). - auto Entry = find(Worklist, I); + auto *Entry = find(Worklist, I); if (Entry != Worklist.end()) { if (auto *NewCI = dyn_cast(Res)) *Entry = NewCI;