aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-05-16 17:44:00 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-05-16 17:44:00 +0000
commitdde8c94873976632e3ada4d8d067e1e244184d51 (patch)
treebe852025055b112b09462d0068226f9db51ad24a
parent145c08360a8ef90392bb0482c94f47e632e78f8c (diff)
Fix review nit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51194 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Expr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h
index 6fb2627321..3699ba1df7 100644
--- a/include/clang/AST/Expr.h
+++ b/include/clang/AST/Expr.h
@@ -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");