From 0558e79840bfdbbd38c6e2b4f6765bf0158e85f4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 21 Mar 2009 09:25:43 +0000 Subject: fix a crash that could occur when a variable declaration became a function definition. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67446 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 60031ab648..47456804d3 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -184,7 +184,7 @@ public: /// GetAddrOfFunction - Return the address of the given function. If Ty is /// non-null, then this function will use the specified type if it has to /// create it. - llvm::Function *GetAddrOfFunction(const FunctionDecl *D, + llvm::Constant *GetAddrOfFunction(const FunctionDecl *D, const llvm::Type *Ty = 0); /// GetStringForStringLiteral - Return the appropriate bytes for a string -- cgit v1.2.3-18-g5258