Changes in directory llvm/lib/Bytecode/Writer:
SlotCalculator.cpp updated: 1.73 -> 1.74 --- Log message: Fix a bug where the types for inlineasm nodes were not properly entered into the compaction table for a function. This broke compilation of hexxagon on darwin/x86 with recent changes. --- Diffs of the changes: (+2 -2) SlotCalculator.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Bytecode/Writer/SlotCalculator.cpp diff -u llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.73 llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.74 --- llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.73 Wed Jan 25 17:08:15 2006 +++ llvm/lib/Bytecode/Writer/SlotCalculator.cpp Wed Jun 7 17:20:03 2006 @@ -275,7 +275,7 @@ SC_DEBUG("begin processFunction!\n"); // If we emitted all of the function constants, build a compaction table. - if ( ModuleContainsAllFunctionConstants) + if (ModuleContainsAllFunctionConstants) buildCompactionTable(F); // Update the ModuleLevel entries to be accurate. @@ -465,7 +465,7 @@ for (const_inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) { getOrCreateCompactionTableSlot(I->getType()); for (unsigned op = 0, e = I->getNumOperands(); op != e; ++op) - if (isa<Constant>(I->getOperand(op))) + if (isa<Constant>(I->getOperand(op)) || isa<InlineAsm>(I->getOperand(op))) getOrCreateCompactionTableSlot(I->getOperand(op)); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits