Fix a bug that Brian brought to my attention.  This corrects:
Assembler/2004-10-22-BCWriterUndefBug.llx

llvm-svn: 17177
diff --git a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
index d4145dbc..0f298dc 100644
--- a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
+++ b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
@@ -150,7 +150,8 @@
         TypePlane &Plane = Table[plane];
         unsigned FirstNonStringID = 0;
         for (unsigned i = 0, e = Plane.size(); i != e; ++i)
-          if (isa<ConstantAggregateZero>(Plane[i]) ||
+          if (isa<ConstantAggregateZero>(Plane[i]) || 
+	      isa<UndefValue>(Plane[i]) ||
               cast<ConstantArray>(Plane[i])->isString()) {
             // Check to see if we have to shuffle this string around.  If not,
             // don't do anything.