aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileSystemStatCache.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-11-23 20:33:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-11-23 20:33:57 +0000
commit94a622af4c91df2ad3f471c8896b302ddb865065 (patch)
treed7c600c75babe7cfa09ee9744bbbb6971e494081 /clang/lib/Basic/FileSystemStatCache.cpp
parent966b25b938ffef56cb805006bc385670a3578941 (diff)
downloadllvm-94a622af4c91df2ad3f471c8896b302ddb865065.zip
llvm-94a622af4c91df2ad3f471c8896b302ddb865065.tar.gz
llvm-94a622af4c91df2ad3f471c8896b302ddb865065.tar.bz2
The srem -> urem transform is not safe for any divisor that's not a power of two.
E.g. -5 % 5 is 0 with srem and 1 with urem. Also addresses Frits van Bommel's comments. llvm-svn: 120049
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
0 files changed, 0 insertions, 0 deletions