summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReader.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2013-02-11 17:52:36 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2013-02-11 17:52:36 +0000
commitc92c8f06ec0dcee0bf6cc035bcd3eba34d15cb44 (patch)
tree4edd15117e1c5c42853062d839db9aed30bca05e /clang/lib/Serialization/ASTReader.cpp
parent0b8ae895b4233da64009ab6fa48f87aada465060 (diff)
downloadbcm5719-llvm-c92c8f06ec0dcee0bf6cc035bcd3eba34d15cb44.tar.gz
bcm5719-llvm-c92c8f06ec0dcee0bf6cc035bcd3eba34d15cb44.zip
[isl-codegen]: Fix off by one in getNumberOfIterations
We need to remove one dimension. Any is correct as long as it exists. We have choosen for whatever reason the dimension #dims - 2. This is incorrect if there is just one dimension. For CLooG this case did never happen. For isl however, the case can happen and causes undefined behavior including crashes. We choose now always the last dimension #dims - 1. We could have choosen dimension '0' but the last dimension is what we remove conceptionally in the algorithm, so it seems better to actually program it that way. While at it remove another piece of undefined behavior. llvm-svn: 174894
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud