summaryrefslogtreecommitdiffstats
path: root/clang/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
commit80f97ab08fe679307edcc31f3d7ceb6f0d951a5b (patch)
tree3782371f81b90c4ece4407f1f31d9977590579eb /clang/lib/CodeGen/CGDecl.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/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 b8f5ca85cf5..f0822675f87 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud