summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ISelLowering.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-05-03 16:43:57 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-05-03 16:43:57 +0000
commiteada39d05066ddfd66bb31b4ace851a60d0496a1 (patch)
treeb3663f04338158d078b6d083eee0ba20dc15252a /llvm/lib/Target/X86/X86ISelLowering.cpp
parent666c7059532db1242ef69a8126380188472a3744 (diff)
downloadbcm5719-llvm-eada39d05066ddfd66bb31b4ace851a60d0496a1.tar.gz
bcm5719-llvm-eada39d05066ddfd66bb31b4ace851a60d0496a1.zip
Silence a 'enum and non-enum used in conditional' warning.
llvm-svn: 302048
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 687dccf06ce..83542aaa013 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -3757,7 +3757,7 @@ X86TargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
// set X86_INTR calling convention because it has the same CSR mask
// (same preserved registers).
const uint32_t *Mask = RegInfo->getCallPreservedMask(
- MF, HasNCSR ? CallingConv::X86_INTR : CallConv);
+ MF, HasNCSR ? (CallingConv::ID)CallingConv::X86_INTR : CallConv);
assert(Mask && "Missing call preserved mask for calling convention");
// If this is an invoke in a 32-bit function using a funclet-based
OpenPOWER on IntegriCloud