TruncInstCombine.cpp - use auto * to fix llvm-qualified-auto clang-tidy warning. NFCI.

This commit is contained in:
Simon Pilgrim 2020-10-02 15:29:21 +01:00
parent f192594956
commit 5e8e89d814
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ void TruncInstCombine::ReduceExpressionDag(Type *SclTy) {
// 1. Update Old-TruncInst -> New-TruncInst. // 1. Update Old-TruncInst -> New-TruncInst.
// 2. Remove Old-TruncInst (if New node is not TruncInst). // 2. Remove Old-TruncInst (if New node is not TruncInst).
// 3. Add New-TruncInst (if Old node was 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 (Entry != Worklist.end()) {
if (auto *NewCI = dyn_cast<TruncInst>(Res)) if (auto *NewCI = dyn_cast<TruncInst>(Res))
*Entry = NewCI; *Entry = NewCI;