Must now explicitly ask for auto=dependent, and explicitly unset.
This commit is contained in:
parent
c464f2c6fb
commit
5f767d3e98
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user