diff options
author | Tobias Grosser <tobias@grosser.es> | 2015-11-10 14:24:21 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2015-11-10 14:24:21 +0000 |
commit | 262538435f2af5d9658893b90b99634dfdf53721 (patch) | |
tree | aeb1c7dcca70f7eb522524298ccb9258296dc69a /clang-tools-extra/clang-tidy/misc/MacroParenthesesCheck.cpp | |
parent | 9d55f19cfa69fbd4a85d5207a4e30c67cec9df89 (diff) | |
download | bcm5719-llvm-262538435f2af5d9658893b90b99634dfdf53721.tar.gz bcm5719-llvm-262538435f2af5d9658893b90b99634dfdf53721.zip |
ScopInfo: Make getDimensionSize better reflect which dimensions carry sizes
In polly the first dimensions of an array as well as all scalars do not carry
any size information. This commit makes this explicit in the interface of
getDimensionSize. Before this commit getDimensionSize(0) returned the size of
the first dimension that carried a size. After this commit getDimensionSize(i)
will either return the size of dimension 'i' or assert in case 'i' does not
carry a size or does not exist at all.
This very same behaviour was already present in getDimensionSizePw(). This
commit also adds assertions that ensure getDimensionSizePw() is called
appropriately.
llvm-svn: 252607
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/MacroParenthesesCheck.cpp')
0 files changed, 0 insertions, 0 deletions