commit | 51174cca3084896bd5f63814f6e5041e6f2684bf | [log] [tgz] |
---|---|---|
author | Tobias Grosser <tobias@grosser.es> | Sun Oct 25 08:40:44 2015 +0000 |
committer | Tobias Grosser <tobias@grosser.es> | Sun Oct 25 08:40:44 2015 +0000 |
tree | ba351dbf83612aa36d8bb7a717eb7db2fbda3a75 | |
parent | 5528dcdf2548eb7bbdf7da7909eb7f78e8f40378 [diff] [blame] |
ScopDetection: Do not crash if we find zero array size candidates for delinearization llvm-svn: 251226
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index c027af0..f0b5df1 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -523,7 +523,8 @@ } } } - Terms.push_back(SE->getMulExpr(Operands)); + if (Operands.size()) + Terms.push_back(SE->getMulExpr(Operands)); } } }