Mark these const.

llvm-svn: 162443
This commit is contained in:
Roman Divacky 2012-08-23 13:57:21 +00:00
parent 563fb4113c
commit 497decbd9b
2 changed files with 2 additions and 2 deletions

View File

@ -3308,7 +3308,7 @@ public:
void setExprs(ASTContext &C, Expr ** Exprs, unsigned NumExprs);
unsigned getShuffleMaskIdx(ASTContext &Ctx, unsigned N) {
unsigned getShuffleMaskIdx(ASTContext &Ctx, unsigned N) const {
assert((N < NumExprs - 2) && "Shuffle idx out of range!");
return getExpr(N+2)->EvaluateKnownConstInt(Ctx).getZExtValue();
}

View File

@ -1583,7 +1583,7 @@ public:
}
/// \brief Returns the CXXConstructExpr from this new-expression, or NULL.
const CXXConstructExpr* getConstructExpr() {
const CXXConstructExpr* getConstructExpr() const {
return dyn_cast_or_null<CXXConstructExpr>(getInitializer());
}