summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-12-08 09:08:17 +0000
committerJohn McCall <rjmccall@apple.com>2009-12-08 09:08:17 +0000
commitce54657e956ec91a1e81596beeb44933dda03f8c (patch)
treebdc30a5b8b3f4265795fbdbd278c64b8a4741418 /clang/lib/CodeGen/CGBlocks.cpp
parentfe2f901269a9744aaece1b6c322b86223aa2b0d6 (diff)
downloadbcm5719-llvm-ce54657e956ec91a1e81596beeb44933dda03f8c.tar.gz
bcm5719-llvm-ce54657e956ec91a1e81596beeb44933dda03f8c.zip
DeclRefExpr stores a ValueDecl internally.
Template instantiation can re-use DeclRefExprs. llvm-svn: 90848
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 9fc2c1a97d6..9e44db0aa0a 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -296,7 +296,7 @@ llvm::Value *CodeGenFunction::BuildBlockLiteralTmp(const BlockExpr *BE) {
++helpersize;
continue;
} else
- E = new (getContext()) DeclRefExpr (cast<NamedDecl>(VD),
+ E = new (getContext()) DeclRefExpr (VD,
VD->getType(),
SourceLocation());
}
OpenPOWER on IntegriCloud