Must now explicitly ask for auto=dependent, and explicitly unset.

This commit is contained in:
Axel Naumann 2013-09-26 14:49:24 +02:00 committed by sftnight
parent c464f2c6fb
commit 5f767d3e98

View File

@ -50,6 +50,13 @@ namespace cling {
VarDecl* VD
= cast<VarDecl>(cast<DeclRefExpr>(BinOp->getLHS())->getDecl());
QualType ResTy;
struct NonDependentSetter: public clang::Type {
static void set(clang::QualType QT) {
clang::Type* Ty = const_cast<clang::Type*>(QT.getTypePtr());
static_cast<NonDependentSetter*>(Ty)->setDependent(false);
}
};
NonDependentSetter::set(VD->getType());
TypeSourceInfo* TrivialTSI
= C.getTrivialTypeSourceInfo(VD->getType());
Expr* RHS = BinOp->getRHS();