forked from OSchip/llvm-project
Silence MSVC warning on 'uint16_t |= bool' with a cast
This isn't C4800, it's C4805. MSVC says this is unsafe, but it generates correct code. llvm-svn: 200229
This commit is contained in:
parent
14f1f44a16
commit
73afb43213
|
@ -1253,7 +1253,7 @@ class ConstantSDNode : public SDNode {
|
|||
ConstantSDNode(bool isTarget, bool isOpaque, const ConstantInt *val, EVT VT)
|
||||
: SDNode(isTarget ? ISD::TargetConstant : ISD::Constant,
|
||||
0, DebugLoc(), getSDVTList(VT)), Value(val) {
|
||||
SubclassData |= isOpaque;
|
||||
SubclassData |= (uint16_t)isOpaque;
|
||||
}
|
||||
public:
|
||||
|
||||
|
|
Loading…
Reference in New Issue