summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-12 21:21:08 +0000
committerChris Lattner <sabre@nondot.org>2009-05-12 21:21:08 +0000
commite0be0dfcedb709915ec3832ca1b89ecb4c67ba41 (patch)
tree5a76ec036c110e5a5cd7596cea3677dcaf357d54 /clang/lib/CodeGen/CGDecl.cpp
parentd035ebda2f798dca978715d5c53d9d8e8ae69a6d (diff)
downloadbcm5719-llvm-e0be0dfcedb709915ec3832ca1b89ecb4c67ba41.tar.gz
bcm5719-llvm-e0be0dfcedb709915ec3832ca1b89ecb4c67ba41.zip
push GlobalDecl through enough of the CodeGenModule interfaces
to allow us to support generation of deferred ctors/dtors. It looks like codegen isn't emitting a call to the dtor in member-functions.cpp:test2, but when it does, its body should get emitted. llvm-svn: 71594
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 15f1e1d4318..b6efcffdfc4 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -400,7 +400,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) {
if (const CleanupAttr *CA = D.getAttr<CleanupAttr>()) {
const FunctionDecl *FD = CA->getFunctionDecl();
- llvm::Constant* F = CGM.GetAddrOfFunction(FD);
+ llvm::Constant* F = CGM.GetAddrOfFunction(GlobalDecl(FD));
assert(F && "Could not find function!");
CleanupScope scope(*this);
OpenPOWER on IntegriCloud