summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-02-25 23:33:13 +0000
committerMike Stump <mrs@apple.com>2009-02-25 23:33:13 +0000
commit8a2b4b1c5b960710db95e9b296d9a600aee37c00 (patch)
treee191004fda640e34ac654762007bd8dadda3deef /lib/CodeGen/CGExprScalar.cpp
parentb293902c5cfa18365ffb0e00763849c9808a2ad1 (diff)
downloadclang-8a2b4b1c5b960710db95e9b296d9a600aee37c00.tar.gz
clang-8a2b4b1c5b960710db95e9b296d9a600aee37c00.tar.bz2
clang-8a2b4b1c5b960710db95e9b296d9a600aee37c00.tar.xz
CodeGen support for copied BlockDeclRefExprs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65487 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 4a2fe997d3..020c21f5cb 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -607,11 +607,7 @@ Value *ScalarExprEmitter::VisitBlockDeclRefExpr(BlockDeclRefExpr *E) {
return VisitExpr(E);
}
- // FIXME: We have most of the easy codegen for the helper, but we need to
- // ensure we don't need copy/dispose, and we need to add the variables into
- // the block literal still.
- CGF.ErrorUnsupported(E, "scalar expression");
-
+ // FIXME: ensure we don't need copy/dispose.
uint64_t &offset = CGF.BlockDecls[E->getDecl()];
const llvm::Type *Ty;
@@ -1389,8 +1385,8 @@ Value *ScalarExprEmitter::VisitVAArgExpr(VAArgExpr *VE) {
}
Value *ScalarExprEmitter::VisitBlockExpr(const BlockExpr *BE) {
- llvm::Constant *C = CGF.BuildBlockLiteralTmp(BE);
- return C;
+ llvm::Value *V = CGF.BuildBlockLiteralTmp(BE);
+ return V;
}
//===----------------------------------------------------------------------===//