diff options
author | John McCall <rjmccall@apple.com> | 2009-12-08 09:08:17 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-12-08 09:08:17 +0000 |
commit | ce54657e956ec91a1e81596beeb44933dda03f8c (patch) | |
tree | bdc30a5b8b3f4265795fbdbd278c64b8a4741418 /clang/lib/CodeGen/CGBlocks.cpp | |
parent | fe2f901269a9744aaece1b6c322b86223aa2b0d6 (diff) | |
download | bcm5719-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.cpp | 2 |
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()); } |