[llvm] r208238 - avoid segfaulting
Sebastian Pop
spop at codeaurora.org
Wed May 7 12:00:37 PDT 2014
Author: spop
Date: Wed May 7 14:00:37 2014
New Revision: 208238
URL: http://llvm.org/viewvc/llvm-project?rev=208238&view=rev
Log:
avoid segfaulting
*Quotient and *Remainder don't have to be initialized.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=208238&r1=208237&r2=208238&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Wed May 7 14:00:37 2014
@@ -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);
More information about the llvm-commits
mailing list