Add the beginnings of a CXXTempVarDecl class.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69652 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp
index a5d133c..34d7464 100644
--- a/lib/AST/DeclCXX.cpp
+++ b/lib/AST/DeclCXX.cpp
@@ -375,6 +375,13 @@
 StaticAssertDecl::~StaticAssertDecl() {
 }
 
+CXXTempVarDecl *CXXTempVarDecl::Create(ASTContext &C, DeclContext *DC,
+                                       QualType T) {
+  assert(isa<CXXRecordDecl>(T->getAsRecordType()->getDecl()) &&
+         "CXXTempVarDecl must have a C++ record type!");
+  return new (C) CXXTempVarDecl(DC, T);
+}
+
 static const char *getAccessName(AccessSpecifier AS) {
   switch (AS) {
     default: