[llvm] 5e8e89d - TruncInstCombine.cpp - use auto * to fix llvm-qualified-auto clang-tidy warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 09:25:23 PDT 2020
Author: Simon Pilgrim
Date: 2020-10-02T17:25:11+01:00
New Revision: 5e8e89d814817fac19c5a93e4ed7910e97401a3f
URL: https://github.com/llvm/llvm-project/commit/5e8e89d814817fac19c5a93e4ed7910e97401a3f
DIFF: https://github.com/llvm/llvm-project/commit/5e8e89d814817fac19c5a93e4ed7910e97401a3f.diff
LOG: TruncInstCombine.cpp - use auto * to fix llvm-qualified-auto clang-tidy warning. NFCI.
Added:
Modified:
llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
Removed:
################################################################################
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<TruncInst>(Res))
*Entry = NewCI;
More information about the llvm-commits
mailing list