Fix a crash in our error reporting
authorTobias Grosser <tobias@grosser.es>
Thu, 8 Jan 2015 19:03:10 +0000 (19:03 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 8 Jan 2015 19:03:10 +0000 (19:03 +0000)
commit021eaef04403b480ccd1e3aefb2c32875fcd6342
treef5cff15d1a144b2497f97f3f7215d6dadce9858f
parente89539f71134c20465a103b99eb36cf9c38cdbf3
Fix a crash in our error reporting

AF = dyn_cast<SCEVAddRecExpr>(Pair.second) may be NULL for some SCEVs that we do
not support. When reporting the error we still want to pass a pointer that is
known to always be non-NULL.

I do not yet have a test case for this, unfortunately.

llvm-svn: 225461
polly/lib/Analysis/ScopDetection.cpp