forked from OSchip/llvm-project
parent
563fb4113c
commit
497decbd9b
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue