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:
Reid Kleckner 2014-01-27 17:47:11 +00:00
parent 14f1f44a16
commit 73afb43213
1 changed files with 1 additions and 1 deletions

View File

@ -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: