forked from OSchip/llvm-project
Rename UnaryTypeTraitExpr::Evaluate to EvaluateTrait to not collide
with Expr::Evaluate(). llvm-svn: 64850
This commit is contained in:
parent
976fdefe2f
commit
491812cd76
|
@ -806,7 +806,7 @@ public:
|
|||
|
||||
QualType getQueriedType() const { return QueriedType; }
|
||||
|
||||
bool Evaluate() const;
|
||||
bool EvaluateTrait() const;
|
||||
|
||||
static bool classof(const Stmt *T) {
|
||||
return T->getStmtClass() == UnaryTypeTraitExprClass;
|
||||
|
|
|
@ -1230,7 +1230,7 @@ bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx,
|
|||
->isIntegerConstantExpr(Result, Ctx, Loc, isEvaluated);
|
||||
|
||||
case UnaryTypeTraitExprClass:
|
||||
Result = cast<UnaryTypeTraitExpr>(this)->Evaluate();
|
||||
Result = cast<UnaryTypeTraitExpr>(this)->EvaluateTrait();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ Stmt::child_iterator UnaryTypeTraitExpr::child_end() {
|
|||
return child_iterator();
|
||||
}
|
||||
|
||||
bool UnaryTypeTraitExpr::Evaluate() const {
|
||||
bool UnaryTypeTraitExpr::EvaluateTrait() const {
|
||||
switch(UTT) {
|
||||
default: assert(false && "Unknown type trait or not implemented");
|
||||
case UTT_IsPOD: return QueriedType->isPODType();
|
||||
|
|
|
@ -552,7 +552,7 @@ public:
|
|||
|
||||
bool VisitUnaryTypeTraitExpr(const UnaryTypeTraitExpr *E) {
|
||||
Result.zextOrTrunc(getIntTypeSizeInBits(E->getType()));
|
||||
Result = E->Evaluate();
|
||||
Result = E->EvaluateTrait();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue