Quick fix for PR2950, infinite loop generating debug info for
recursive types.
- Style will be clean up in further patches.
llvm-svn: 58490
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index 28834ee..9e5ad17 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -88,12 +88,14 @@
llvm::CompileUnitDesc *unit);
llvm::TypeDesc *getOrCreateFunctionType(QualType type,
llvm::CompileUnitDesc *unit);
- llvm::TypeDesc *getOrCreateRecordType(QualType type,
- llvm::CompileUnitDesc *unit);
+ void getOrCreateRecordType(QualType type,
+ llvm::CompileUnitDesc *unit,
+ llvm::TypeDesc *&Slot);
llvm::TypeDesc *getOrCreateEnumType(QualType type,
llvm::CompileUnitDesc *unit);
- llvm::TypeDesc *getOrCreateTaggedType(QualType type,
- llvm::CompileUnitDesc *unit);
+ void getOrCreateTaggedType(QualType type,
+ llvm::CompileUnitDesc *unit,
+ llvm::TypeDesc *&Slot);
llvm::TypeDesc *getOrCreateArrayType(QualType type,
llvm::CompileUnitDesc *unit);