diff options
author | Sebastian Pop <spop@codeaurora.org> | 2014-05-07 19:00:37 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2014-05-07 19:00:37 +0000 |
commit | b8d56f42b70650a92a9fda061c325307647df33b (patch) | |
tree | d9e350827b5d2d0af0cd2e680b0839321e765275 /llvm/lib | |
parent | a7d3d6ab9f3fce911b1ac0183423a3d598ead023 (diff) | |
download | bcm5719-llvm-b8d56f42b70650a92a9fda061c325307647df33b.tar.gz bcm5719-llvm-b8d56f42b70650a92a9fda061c325307647df33b.zip |
avoid segfaulting
*Quotient and *Remainder don't have to be initialized.
llvm-svn: 208238
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index c44c13b04fc..148e58d548f 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -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); |