From 0583b2c08ef5ddfa8b38370f09116295d4c45505 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 27 Jan 2014 17:47:11 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200229 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/SelectionDAGNodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 976d212ce3d..216d40c18f2 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -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: -- 2.34.1