forked from OSchip/llvm-project
TruncInstCombine.cpp - use auto * to fix llvm-qualified-auto clang-tidy warning. NFCI.
This commit is contained in:
parent
f192594956
commit
5e8e89d814
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue