From 5e8e89d814817fac19c5a93e4ed7910e97401a3f 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. --- llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp b/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp index 501e01138e9f..de6193835938 100644 --- a/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp +++ b/llvm/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;