From: Alexey Bataev Date: Wed, 25 May 2016 12:51:24 +0000 (+0000) Subject: Fix build problem in MSVC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e833c63ff61baf8bf53d12b306857e3ff53003f;p=clang Fix build problem in MSVC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270693 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/OpenMPClause.cpp b/lib/AST/OpenMPClause.cpp index 01a2d11c54..23c05d5c28 100644 --- a/lib/AST/OpenMPClause.cpp +++ b/lib/AST/OpenMPClause.cpp @@ -526,10 +526,7 @@ OMPDependClause *OMPDependClause::Create( } OMPDependClause *OMPDependClause::CreateEmpty(const ASTContext &C, unsigned N) { - void *Mem = C.Allocate(totalSizeToAlloc( - static_cast::type>(N) + - 1)); + void *Mem = C.Allocate(totalSizeToAlloc(N + 1)); return new (Mem) OMPDependClause(N); }