aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Constants.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-12-15 06:11:33 +0000
committerCraig Topper <craig.topper@gmail.com>2015-12-15 06:11:33 +0000
commit1c3f28313ed0f0282c5a4f339611a15cca61bfdd (patch)
tree1654fd30ffd316b9b2ca5cf8e214e9eb2a782f33 /llvm/lib/IR/Constants.cpp
parent350311974b6b67fc5832f6984fb711d8263e0703 (diff)
downloadllvm-1c3f28313ed0f0282c5a4f339611a15cca61bfdd.zip
llvm-1c3f28313ed0f0282c5a4f339611a15cca61bfdd.tar.gz
llvm-1c3f28313ed0f0282c5a4f339611a15cca61bfdd.tar.bz2
Use CmpInst::Predicate instead of 'unsigned short' in some places. NFC
llvm-svn: 255623
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r--llvm/lib/IR/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index 36282c1..ac80eae 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -3021,7 +3021,7 @@ Instruction *ConstantExpr::getAsInstruction() {
case Instruction::ICmp:
case Instruction::FCmp:
return CmpInst::Create((Instruction::OtherOps)getOpcode(),
- getPredicate(), Ops[0], Ops[1]);
+ (CmpInst::Predicate)getPredicate(), Ops[0], Ops[1]);
default:
assert(getNumOperands() == 2 && "Must be binary operator?");