Fix review nit.

llvm-svn: 51194
This commit is contained in:
Eli Friedman 2008-05-16 17:44:00 +00:00
parent cb92a3f03b
commit bb0eb81ebf
1 changed files with 2 additions and 1 deletions

View File

@ -1152,7 +1152,8 @@ public:
return SubExprs[Index];
}
int getShuffleMaskIdx(ASTContext &Ctx, unsigned N) {
unsigned getShuffleMaskIdx(ASTContext &Ctx, unsigned N) {
assert((N < NumExprs - 2) && "Shuffle idx out of range!");
llvm::APSInt Result(32);
bool result = getExpr(N+2)->isIntegerConstantExpr(Result, Ctx);
assert(result && "Must be integer constant");