Skip to content

Commit 9f406cb

Browse files
make angry compilers happy again
llvm-svn: 22054
1 parent 73c4dba commit 9f406cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/IA64/IA64ISelPattern.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,8 @@ SDOperand ISel::BuildConstmulSequence(SDOperand N) {
816816
// do the transformation, filling out 'ops'
817817
lefevre(boothEncodedString, ops);
818818

819-
SDOperand results[ops.size()]; // temporary results (of adds/subs of shifts)
819+
assert(ops.size() < 80 && "constmul code has gone haywire\n");
820+
SDOperand results[80]; // temporary results (of adds/subs of shifts)
820821

821822
// now turn 'ops' into DAG bits
822823
for(unsigned i=0; i<ops.size(); i++) {

0 commit comments

Comments
 (0)