1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

avoid segfaulting

*Quotient and *Remainder don't have to be initialized.

llvm-svn: 208238
This commit is contained in:
Sebastian Pop 2014-05-07 19:00:37 +00:00
parent 8f355b84ae
commit 866eb1eecf

View File

@ -6975,8 +6975,7 @@ public:
static void divide(ScalarEvolution &SE, const SCEV *Numerator,
const SCEV *Denominator, const SCEV **Quotient,
const SCEV **Remainder) {
assert(Numerator && Denominator && *Quotient && *Remainder &&
"Uninitialized SCEV");
assert(Numerator && Denominator && "Uninitialized SCEV");
SCEVDivision D(SE, Numerator, Denominator);