make angry compilers happy again
authorDuraid Madina <duraid@octopus.com.au>
Sun, 15 May 2005 14:44:13 +0000 (14:44 +0000)
committerDuraid Madina <duraid@octopus.com.au>
Sun, 15 May 2005 14:44:13 +0000 (14:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22054 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/IA64/IA64ISelPattern.cpp

index 3cd32ba6970af338c21ca9eb8ebdde7e30a8c0e0..1ea16cce8f4153ac5efeddd36989ddf2c29284a6 100644 (file)
@@ -816,7 +816,8 @@ SDOperand ISel::BuildConstmulSequence(SDOperand N) {
   // do the transformation, filling out 'ops'
   lefevre(boothEncodedString, ops);
 
-  SDOperand results[ops.size()]; // temporary results (of adds/subs of shifts)
+  assert(ops.size() < 80 && "constmul code has gone haywire\n");
+  SDOperand results[80]; // temporary results (of adds/subs of shifts)
   
   // now turn 'ops' into DAG bits
   for(unsigned i=0; i<ops.size(); i++) {