diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-24 04:27:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-24 04:27:59 +0000 |
commit | 3ff92894766a075c30f71e92c789f7f73c016144 (patch) | |
tree | 8ae3cf43f330e938878bfe2cd92ce8bbf8d3bf9c /llvm/lib/Bytecode/Writer | |
parent | fa2f3010c124eef1aedb4f1608601cd34f8221dc (diff) | |
download | bcm5719-llvm-3ff92894766a075c30f71e92c789f7f73c016144.tar.gz bcm5719-llvm-3ff92894766a075c30f71e92c789f7f73c016144.zip |
Fix the previous bug the correct way. This fixes ptrdist/bc
llvm-svn: 17201
Diffstat (limited to 'llvm/lib/Bytecode/Writer')
-rw-r--r-- | llvm/lib/Bytecode/Writer/SlotCalculator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp index 0f298dcd003..575dd34dbdf 100644 --- a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp @@ -151,8 +151,8 @@ void SlotCalculator::processModule() { unsigned FirstNonStringID = 0; for (unsigned i = 0, e = Plane.size(); i != e; ++i) if (isa<ConstantAggregateZero>(Plane[i]) || - isa<UndefValue>(Plane[i]) || - cast<ConstantArray>(Plane[i])->isString()) { + (isa<ConstantArray>(Plane[i]) && + cast<ConstantArray>(Plane[i])->isString())) { // Check to see if we have to shuffle this string around. If not, // don't do anything. if (i != FirstNonStringID) { |