From c5ed65ca3049e279e47692435111f30c09bbaa6b Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Fri, 30 Sep 2016 17:14:44 +0000 Subject: [PATCH] [CUDA] Add missing comment on Sema::CheckCUDAVLA. llvm-svn: 282878 --- clang/include/clang/Sema/Sema.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index a95a977..0a08b12 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/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 -- 2.7.4