]> granicus.if.org Git - clang/commitdiff
[CUDA] Add missing comment on Sema::CheckCUDAVLA.
authorJustin Lebar <jlebar@google.com>
Fri, 30 Sep 2016 17:14:44 +0000 (17:14 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 30 Sep 2016 17:14:44 +0000 (17:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282878 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h

index a95a97712f8202e9412e08ff62797bf7d509ec8e..0a08b12d2178f0082bf6f93ccf6e37db0277dd09 100644 (file)
@@ -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