diff options
| author | Tobias Grosser <tobias@grosser.es> | 2015-10-25 08:40:44 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2015-10-25 08:40:44 +0000 |
| commit | 51174cca3084896bd5f63814f6e5041e6f2684bf (patch) | |
| tree | ba351dbf83612aa36d8bb7a717eb7db2fbda3a75 /polly/lib/Analysis/ScopDetection.cpp | |
| parent | 5528dcdf2548eb7bbdf7da7909eb7f78e8f40378 (diff) | |
| download | bcm5719-llvm-51174cca3084896bd5f63814f6e5041e6f2684bf.tar.gz bcm5719-llvm-51174cca3084896bd5f63814f6e5041e6f2684bf.zip | |
ScopDetection: Do not crash if we find zero array size candidates for delinearization
llvm-svn: 251226
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index c027af08e77..f0b5df1816a 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -523,7 +523,8 @@ bool ScopDetection::hasAffineMemoryAccesses(DetectionContext &Context) const { } } } - Terms.push_back(SE->getMulExpr(Operands)); + if (Operands.size()) + Terms.push_back(SE->getMulExpr(Operands)); } } } |

