aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2005-05-15 14:44:13 +0000
committerDuraid Madina <duraid@octopus.com.au>2005-05-15 14:44:13 +0000
commit9f406cb29b32a7353fee5ee4df2c08b0964a7197 (patch)
tree952fdb0600b8ae765725e375e25448b9f089c6bf
parent73c4dbae23af0995f849748d7ede708ee9f546ec (diff)
downloadllvm-9f406cb29b32a7353fee5ee4df2c08b0964a7197.zip
llvm-9f406cb29b32a7353fee5ee4df2c08b0964a7197.tar.gz
llvm-9f406cb29b32a7353fee5ee4df2c08b0964a7197.tar.bz2
make angry compilers happy again
llvm-svn: 22054
-rw-r--r--llvm/lib/Target/IA64/IA64ISelPattern.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/IA64/IA64ISelPattern.cpp b/llvm/lib/Target/IA64/IA64ISelPattern.cpp
index 3cd32ba..1ea16cc 100644
--- a/llvm/lib/Target/IA64/IA64ISelPattern.cpp
+++ b/llvm/lib/Target/IA64/IA64ISelPattern.cpp
@@ -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++) {