projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
666c705
)
Silence a 'enum and non-enum used in conditional' warning.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 3 May 2017 16:43:57 +0000
(16:43 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 3 May 2017 16:43:57 +0000
(16:43 +0000)
llvm-svn: 302048
llvm/lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86ISelLowering.cpp
b/llvm/lib/Target/X86/X86ISelLowering.cpp
index
687dccf
..
83542aa
100644
(file)
--- 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