From: Chris Lattner Date: Sun, 24 Oct 2004 04:27:59 +0000 (+0000) Subject: Fix the previous bug the correct way. This fixes ptrdist/bc X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=236ca4467f244ee717872eb813053ed244e308f0;p=oota-llvm.git Fix the previous bug the correct way. This fixes ptrdist/bc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17201 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index 0f298dcd003..575dd34dbdf 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/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(Plane[i]) || - isa(Plane[i]) || - cast(Plane[i])->isString()) { + (isa(Plane[i]) && + cast(Plane[i])->isString())) { // Check to see if we have to shuffle this string around. If not, // don't do anything. if (i != FirstNonStringID) {