diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-20 17:11:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-20 17:11:38 +0000 |
commit | 5078f84c82814e4d33846f9ef54281619d362f8a (patch) | |
tree | 921b04304283dd557b56cc489695298c0569ae12 /lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | b255b88f06b81523c64369fe686fedab0225de54 (diff) | |
download | external_llvm-5078f84c82814e4d33846f9ef54281619d362f8a.zip external_llvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.gz external_llvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.bz2 |
Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrap
and hasNoSignedWrap, for consistency with the nuw and nsw properties.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index ab560e7..df171c5 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -883,10 +883,10 @@ bool BitcodeReader::ResolveGlobalAndAliasInits() { static void SetOptimizationFlags(Value *V, uint64_t Flags) { if (OverflowingBinaryOperator *OBO = dyn_cast<OverflowingBinaryOperator>(V)) { - if (Flags & (1 << bitc::OBO_NO_SIGNED_OVERFLOW)) - OBO->setHasNoSignedOverflow(true); - if (Flags & (1 << bitc::OBO_NO_UNSIGNED_OVERFLOW)) - OBO->setHasNoUnsignedOverflow(true); + if (Flags & (1 << bitc::OBO_NO_SIGNED_WRAP)) + OBO->setHasNoSignedWrap(true); + if (Flags & (1 << bitc::OBO_NO_UNSIGNED_WRAP)) + OBO->setHasNoUnsignedWrap(true); } else if (SDivOperator *Div = dyn_cast<SDivOperator>(V)) { if (Flags & (1 << bitc::SDIV_EXACT)) Div->setIsExact(true); |