DeclRefExpr stores a ValueDecl internally.

Template instantiation can re-use DeclRefExprs.

llvm-svn: 90848
This commit is contained in:
John McCall
2009-12-08 09:08:17 +00:00
parent fe2f901269
commit ce54657e95
8 changed files with 46 additions and 55 deletions

View File

@@ -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());
}