summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-20 17:11:38 +0000
committerDan Gohman <gohman@apple.com>2009-08-20 17:11:38 +0000
commit5078f84c82814e4d33846f9ef54281619d362f8a (patch)
tree921b04304283dd557b56cc489695298c0569ae12 /lib/Bitcode/Reader
parentb255b88f06b81523c64369fe686fedab0225de54 (diff)
downloadllvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.gz
llvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.bz2
llvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.xz
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')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp
index ab560e786d..df171c55e7 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);