diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-15 05:55:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-15 05:55:15 +0000 |
commit | de512b5b2edebe9c9021a92c7c7a9ae9fbc380d6 (patch) | |
tree | 4da44078e014b4c44afa0a73fd0f57c26a748553 /lib/Bytecode/Writer/SlotCalculator.cpp | |
parent | cfb0fd2ce8a1a7d5ac83d5bf42742219179ffa03 (diff) |
Adjustments to support the new ConstantAggregateZero class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/SlotCalculator.cpp')
-rw-r--r-- | lib/Bytecode/Writer/SlotCalculator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index 7b18a1dfd5..d462bdd1e9 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/lib/Bytecode/Writer/SlotCalculator.cpp @@ -146,7 +146,8 @@ void SlotCalculator::processModule() { TypePlane &Plane = Table[plane]; unsigned FirstNonStringID = 0; for (unsigned i = 0, e = Plane.size(); i != e; ++i) - if (cast<ConstantArray>(Plane[i])->isString()) { + if (isa<ConstantAggregateZero>(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) { |