summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-21 09:25:43 +0000
committerChris Lattner <sabre@nondot.org>2009-03-21 09:25:43 +0000
commita85d68e5d8adbe917c36d27e517071ec3838d46b (patch)
tree711b674b188cd207ed52ae99dc1bd271364e6e51 /clang/lib/CodeGen/CodeGenModule.h
parent149927c9f86ed36995fc5956432074fefd1cca9c (diff)
downloadbcm5719-llvm-a85d68e5d8adbe917c36d27e517071ec3838d46b.tar.gz
bcm5719-llvm-a85d68e5d8adbe917c36d27e517071ec3838d46b.zip
fix a crash that could occur when a variable declaration became a
function definition. llvm-svn: 67446
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 60031ab648a..47456804d3a 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/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
OpenPOWER on IntegriCloud