From b4f44537cd6da7d620024d65fe6f565ffa38e412 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 2 Oct 2020 15:29:21 +0100 Subject: [PATCH] TruncInstCombine.cpp - use auto * to fix llvm-qualified-auto clang-tidy warning. NFCI. --- lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;