forked from OSchip/llvm-project
[Codegen] Both sides of '&&' are same; fixed
Summary: Found by PVS Studio Not familiar with this code; no testcase. Reviewers: craig.topper, RKSimon Reviewed By: RKSimon Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D69741
This commit is contained in:
parent
c12efa2ed0
commit
edb42dccfa
|
@ -479,7 +479,7 @@ bool TypeInfer::EnforceSmallerThan(TypeSetByHwMode &Small,
|
|||
TypeSetByHwMode::SetType &S = Small.get(M);
|
||||
TypeSetByHwMode::SetType &B = Big.get(M);
|
||||
|
||||
if (any_of(S, isIntegerOrPtr) && any_of(S, isIntegerOrPtr)) {
|
||||
if (any_of(S, isIntegerOrPtr) && any_of(B, isIntegerOrPtr)) {
|
||||
auto NotInt = [](MVT VT) { return !isIntegerOrPtr(VT); };
|
||||
Changed |= berase_if(S, NotInt) |
|
||||
berase_if(B, NotInt);
|
||||
|
|
Loading…
Reference in New Issue