aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-04-08 04:48:15 +0000
committerAnders Carlsson <andersca@mac.com>2009-04-08 04:48:15 +0000
commite9352cc9818ba59e7cf88500ef048991c90f3821 (patch)
tree07a0f0981db789fda98085977fa144e517a14407 /lib/CodeGen/CGDecl.cpp
parent8158a2f78c47bf332dbd8b0b680de8a9b8d0511e (diff)
Add a destination type argument to EmitConstantExpr. This will be used for when the destination has a reference type. (No functionality change yet)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r--lib/CodeGen/CGDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp
index b8f5ca85cf..f0822675f8 100644
--- a/lib/CodeGen/CGDecl.cpp
+++ b/lib/CodeGen/CGDecl.cpp
@@ -121,7 +121,7 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D) {
DMEntry = GV;
if (D.getInit()) {
- llvm::Constant *Init = CGM.EmitConstantExpr(D.getInit(), this);
+ llvm::Constant *Init = CGM.EmitConstantExpr(D.getInit(), D.getType(), this);
// If constant emission failed, then this should be a C++ static
// initializer.