summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-10-23 17:24:15 +0000
committerFangrui Song <maskray@google.com>2018-10-23 17:24:15 +0000
commit531e3d0cd90db990b56482666f07b6a4ead9b82d (patch)
treeb5db04715e0dec343bc3be64a26fddbb7bb39eb6
parentd300ba1ed7040c0d3271271d7217f682e6eb4656 (diff)
downloadbcm5719-llvm-531e3d0cd90db990b56482666f07b6a4ead9b82d.tar.gz
bcm5719-llvm-531e3d0cd90db990b56482666f07b6a4ead9b82d.zip
[IR] Fix -Wunused-function after r345052
llvm-svn: 345057
-rw-r--r--llvm/lib/IR/Instructions.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index 2a188b77679..d92706500bc 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -2109,13 +2109,6 @@ BinaryOperator *BinaryOperator::CreateNot(Value *Op, const Twine &Name,
Op->getType(), Name, InsertAtEnd);
}
-// isConstantAllOnes - Helper function for several functions below
-static inline bool isConstantAllOnes(const Value *V) {
- if (const Constant *C = dyn_cast<Constant>(V))
- return C->isAllOnesValue();
- return false;
-}
-
bool BinaryOperator::isFNeg(const Value *V, bool IgnoreZeroSign) {
if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V))
if (Bop->getOpcode() == Instruction::FSub)
OpenPOWER on IntegriCloud