[cfe-commits] r133109 - /cfe/trunk/include/clang/Sema/Initialization.h
John McCall
rjmccall at apple.com
Wed Jun 15 16:39:23 PDT 2011
Author: rjmccall
Date: Wed Jun 15 18:39:23 2011
New Revision: 133109
URL: http://llvm.org/viewvc/llvm-project?rev=133109&view=rev
Log:
Suppress an over-zealous MSVC warning.
Modified:
cfe/trunk/include/clang/Sema/Initialization.h
Modified: cfe/trunk/include/clang/Sema/Initialization.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Initialization.h?rev=133109&r1=133108&r2=133109&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Initialization.h (original)
+++ cfe/trunk/include/clang/Sema/Initialization.h Wed Jun 15 18:39:23 2011
@@ -164,7 +164,8 @@
Entity.Type = Context.getVariableArrayDecayedType(
Parm->getType().getUnqualifiedType());
Entity.Parent = 0;
- Entity.Parameter = (Consumed | reinterpret_cast<uintptr_t>(Parm));
+ Entity.Parameter
+ = (static_cast<uintptr_t>(Consumed) | reinterpret_cast<uintptr_t>(Parm));
return Entity;
}
More information about the cfe-commits
mailing list