commit | ce54657e956ec91a1e81596beeb44933dda03f8c | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Tue Dec 08 09:08:17 2009 +0000 |
committer | John McCall <rjmccall@apple.com> | Tue Dec 08 09:08:17 2009 +0000 |
tree | bdc30a5b8b3f4265795fbdbd278c64b8a4741418 | |
parent | fe2f901269a9744aaece1b6c322b86223aa2b0d6 [diff] [blame] |
DeclRefExpr stores a ValueDecl internally. Template instantiation can re-use DeclRefExprs. llvm-svn: 90848
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 9fc2c1a..9e44db0 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -296,7 +296,7 @@ ++helpersize; continue; } else - E = new (getContext()) DeclRefExpr (cast<NamedDecl>(VD), + E = new (getContext()) DeclRefExpr (VD, VD->getType(), SourceLocation()); }