summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.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
commit80f97ab08fe679307edcc31f3d7ceb6f0d951a5b (patch)
tree3782371f81b90c4ece4407f1f31d9977590579eb /clang/lib/CodeGen/CodeGenModule.cpp
parenta72576e92bf483216bf3d0e5c1be84e7387434a7 (diff)
downloadbcm5719-llvm-80f97ab08fe679307edcc31f3d7ceb6f0d951a5b.tar.gz
bcm5719-llvm-80f97ab08fe679307edcc31f3d7ceb6f0d951a5b.zip
Add a destination type argument to EmitConstantExpr. This will be used for when the destination has a reference type. (No functionality change yet)
llvm-svn: 68593
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 508d7ce2b6f..2c1ab1f8b59 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud