From 3ff92894766a075c30f71e92c789f7f73c016144 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 24 Oct 2004 04:27:59 +0000 Subject: Fix the previous bug the correct way. This fixes ptrdist/bc llvm-svn: 17201 --- llvm/lib/Bytecode/Writer/SlotCalculator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Bytecode/Writer/SlotCalculator.cpp') 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(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) { -- cgit v1.2.3