summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.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/CGExprConstant.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/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index 36a9eabcb9c..e814dfc6153 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/lib/CodeGen/CGExprConstant.cpp
@@ -406,7 +406,7 @@ public:
case Expr::QualifiedDeclRefExprClass: {
NamedDecl *Decl = cast<DeclRefExpr>(E)->getDecl();
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(Decl))
- return CGM.GetAddrOfFunction(FD);
+ return CGM.GetAddrOfFunction(GlobalDecl(FD));
if (const VarDecl* VD = dyn_cast<VarDecl>(Decl)) {
// We can never refer to a variable with local storage.
if (!VD->hasLocalStorage()) {
OpenPOWER on IntegriCloud