r282878 - [CUDA] Add missing comment on Sema::CheckCUDAVLA.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 30 10:14:44 PDT 2016

Author: jlebar
Date: Fri Sep 30 12:14:44 2016
New Revision: 282878

URL: http://llvm.org/viewvc/llvm-project?rev=282878&view=rev
[CUDA] Add missing comment on Sema::CheckCUDAVLA.


Modified: cfe/trunk/include/clang/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=282878&r1=282877&r2=282878&view=diff
--- cfe/trunk/include/clang/Sema/Sema.h (original)
+++ cfe/trunk/include/clang/Sema/Sema.h Fri Sep 30 12:14:44 2016
@@ -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

More information about the cfe-commits mailing list