diff options
Diffstat (limited to 'include/llvm/InstrTypes.h')
-rw-r--r-- | include/llvm/InstrTypes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h index 560c32b73a..35fec63ddf 100644 --- a/include/llvm/InstrTypes.h +++ b/include/llvm/InstrTypes.h @@ -201,19 +201,19 @@ public: static BinaryOperator *CreateNSWAdd(Value *V1, Value *V2, const Twine &Name = "") { BinaryOperator *BO = CreateAdd(V1, V2, Name); - cast<AddOperator>(BO)->setHasNoSignedOverflow(true); + cast<AddOperator>(BO)->setHasNoSignedWrap(true); return BO; } static BinaryOperator *CreateNSWAdd(Value *V1, Value *V2, const Twine &Name, BasicBlock *BB) { BinaryOperator *BO = CreateAdd(V1, V2, Name, BB); - cast<AddOperator>(BO)->setHasNoSignedOverflow(true); + cast<AddOperator>(BO)->setHasNoSignedWrap(true); return BO; } static BinaryOperator *CreateNSWAdd(Value *V1, Value *V2, const Twine &Name, Instruction *I) { BinaryOperator *BO = CreateAdd(V1, V2, Name, I); - cast<AddOperator>(BO)->setHasNoSignedOverflow(true); + cast<AddOperator>(BO)->setHasNoSignedWrap(true); return BO; } |