1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

InterleavedLoadCombine - merge isa<> and dyn_cast<> duplicates. NFCI.

Silence static analyzer null dereference warning of *dyn_cast<BinaryOperator> by merging with the isa<BinaryOperator> above.

llvm-svn: 371935
This commit is contained in:
Simon Pilgrim 2019-09-15 16:20:12 +00:00
parent cb12c82cda
commit 5387a45910

View File

@ -940,8 +940,8 @@ public:
/// \param V input value
/// \param Result result polynomial
static void computePolynomial(Value &V, Polynomial &Result) {
if (isa<BinaryOperator>(&V))
computePolynomialBinOp(*dyn_cast<BinaryOperator>(&V), Result);
if (auto *BO = dyn_cast<BinaryOperator>(&V))
computePolynomialBinOp(*BO, Result);
else
Result = Polynomial(&V);
}