DeclRefExpr stores a ValueDecl internally.
Template instantiation can re-use DeclRefExprs. llvm-svn: 90848
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user