From 82d1cc06ea533267e24ffe8b5885062ca062b479 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 15 Jun 2011 23:39:23 +0000 Subject: [PATCH] Suppress an over-zealous MSVC warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133109 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/Initialization.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/clang/Sema/Initialization.h b/include/clang/Sema/Initialization.h index 7a5dbaca19..b86dbf0196 100644 --- a/include/clang/Sema/Initialization.h +++ b/include/clang/Sema/Initialization.h @@ -164,7 +164,8 @@ public: Entity.Type = Context.getVariableArrayDecayedType( Parm->getType().getUnqualifiedType()); Entity.Parent = 0; - Entity.Parameter = (Consumed | reinterpret_cast(Parm)); + Entity.Parameter + = (static_cast(Consumed) | reinterpret_cast(Parm)); return Entity; } -- 2.40.0