From: Justin Lebar Date: Fri, 30 Sep 2016 17:14:44 +0000 (+0000) Subject: [CUDA] Add missing comment on Sema::CheckCUDAVLA. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3269fd7b7beaf09a97c78297634e774fa05d7b06;p=clang [CUDA] Add missing comment on Sema::CheckCUDAVLA. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282878 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index a95a97712f..0a08b12d21 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -9259,6 +9259,9 @@ public: /// ExprTy should be the string "try" or "throw", as appropriate. bool CheckCUDAExceptionExpr(SourceLocation Loc, StringRef ExprTy); + /// Check whether it's legal for us to create a variable-length array in the + /// current context. Returns true if the VLA is OK; returns false and emits + /// an error otherwise. bool CheckCUDAVLA(SourceLocation Loc); /// Finds a function in \p Matches with highest calling priority