]> granicus.if.org Git - clang/commitdiff
how about we initialize RecursionState.
authorChris Lattner <sabre@nondot.org>
Sun, 10 Jul 2011 01:10:18 +0000 (01:10 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 10 Jul 2011 01:10:18 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134855 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.cpp
lib/CodeGen/CodeGenTypes.cpp

index 7387fa7096d5f0724a03d8f1686cb5425e55b0c3..c954e7329acc497f7f9b17d6dda471829df9d0ad 100644 (file)
@@ -252,8 +252,7 @@ const CGFunctionInfo &CodeGenTypes::getFunctionInfo(CanQualType ResTy,
 
   // Lookup or create unique function info.
   llvm::FoldingSetNodeID ID;
-  CGFunctionInfo::Profile(ID, Info, ResTy,
-                          ArgTys.begin(), ArgTys.end());
+  CGFunctionInfo::Profile(ID, Info, ResTy, ArgTys.begin(), ArgTys.end());
 
   void *InsertPos = 0;
   CGFunctionInfo *FI = FunctionInfos.FindNodeOrInsertPos(ID, InsertPos);
index ed44aec492ddd61fa646bed6100a17953d660ca0..f304df917b1438aaa0f69da5b81efe82ee5eeba3 100644 (file)
@@ -31,6 +31,7 @@ CodeGenTypes::CodeGenTypes(ASTContext &Ctx, llvm::Module& M,
                            CGCXXABI &CXXABI, const CodeGenOptions &CGO)
   : Context(Ctx), Target(Ctx.Target), TheModule(M), TheTargetData(TD),
     TheABIInfo(Info), TheCXXABI(CXXABI), CodeGenOpts(CGO) {
+  RecursionState = RS_Normal;
 }
 
 CodeGenTypes::~CodeGenTypes() {