diff options
author | Anders Carlsson <andersca@mac.com> | 2009-04-08 04:48:15 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-04-08 04:48:15 +0000 |
commit | e9352cc9818ba59e7cf88500ef048991c90f3821 (patch) | |
tree | 07a0f0981db789fda98085977fa144e517a14407 /lib/CodeGen/CodeGenModule.cpp | |
parent | 8158a2f78c47bf332dbd8b0b680de8a9b8d0511e (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/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 508d7ce2b6..2c1ab1f8b5 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -693,7 +693,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) { } Init = llvm::Constant::getNullValue(InitTy); } else { - Init = EmitConstantExpr(D->getInit()); + Init = EmitConstantExpr(D->getInit(), D->getType()); if (!Init) { ErrorUnsupported(D, "static initializer"); QualType T = D->getInit()->getType(); |