[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Oct 22 20:10:34 PDT 2004
Changes in directory llvm/lib/Bytecode/Writer:
SlotCalculator.cpp updated: 1.63 -> 1.64
---
Log message:
Fix a bug that Brian brought to my attention. This corrects:
Assembler/2004-10-22-BCWriterUndefBug.llx
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/Bytecode/Writer/SlotCalculator.cpp
diff -u llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.63 llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.64
--- llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.63 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Bytecode/Writer/SlotCalculator.cpp Fri Oct 22 22:10:23 2004
@@ -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.
More information about the llvm-commits
mailing list