summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-05-09 00:12:33 +0000
committerVedant Kumar <vsk@apple.com>2017-05-09 00:12:33 +0000
commit94cb34b6a1efc04ae7201d3bd7b025c781da1926 (patch)
tree6c9e01e305d2fc53bab3bc116de0ab7ee9df91a0 /clang/lib
parent0af535636e0de4562e0c07abc3774884c787fc47 (diff)
downloadbcm5719-llvm-94cb34b6a1efc04ae7201d3bd7b025c781da1926.tar.gz
bcm5719-llvm-94cb34b6a1efc04ae7201d3bd7b025c781da1926.zip
Rename a method. NFC.
llvm-svn: 302490
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 70b741651fd..7462f99a2ae 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -89,14 +89,14 @@ struct BinOpInfo {
}
/// Check if the binop computes a division or a remainder.
- bool isDivisionLikeOperation() const {
+ bool isDivremOp() const {
return Opcode == BO_Div || Opcode == BO_Rem || Opcode == BO_DivAssign ||
Opcode == BO_RemAssign;
}
/// Check if the binop can result in an integer division by zero.
bool mayHaveIntegerDivisionByZero() const {
- if (isDivisionLikeOperation())
+ if (isDivremOp())
if (auto *CI = dyn_cast<llvm::ConstantInt>(RHS))
return CI->isZero();
return true;
@@ -104,7 +104,7 @@ struct BinOpInfo {
/// Check if the binop can result in a float division by zero.
bool mayHaveFloatDivisionByZero() const {
- if (isDivisionLikeOperation())
+ if (isDivremOp())
if (auto *CFP = dyn_cast<llvm::ConstantFP>(RHS))
return CFP->isZero();
return true;
OpenPOWER on IntegriCloud