llvm.org GIT mirror llvm / 60ce9b5
fix build with non-buggy compilers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36621 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 11 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
570570 for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i)
571571 Vals.push_back(VE.getValueID(I.getOperand(i)));
572572 break;
573 case Instruction::Invoke:
573 case Instruction::Invoke: {
574574 Code = bitc::FUNC_CODE_INST_INVOKE;
575575 // FIXME: param attrs
576576 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
595595 }
596596 }
597597 break;
598 }
598599 case Instruction::Unwind:
599600 Code = bitc::FUNC_CODE_INST_UNWIND;
600601 break;
657658 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i)
658659 Vals.push_back(VE.getValueID(I.getOperand(i+1))); // fixed param.
659660
660 // Emit type/value pairs for varargs params.
661 if (FTy->isVarArg()) {
662 unsigned NumVarargs = I.getNumOperands()-1-FTy->getNumParams();
663 Vals.push_back(NumVarargs);
664 for (unsigned i = I.getNumOperands()-NumVarargs, e = I.getNumOperands();
665 i != e; ++i) {
666 Vals.push_back(VE.getTypeID(I.getOperand(i)->getType()));
667 Vals.push_back(VE.getValueID(I.getOperand(i)));
668 }
661 // Emit type/value pairs for varargs params.
662 if (FTy->isVarArg()) {
663 unsigned NumVarargs = I.getNumOperands()-1-FTy->getNumParams();
664 Vals.push_back(NumVarargs);
665 for (unsigned i = I.getNumOperands()-NumVarargs, e = I.getNumOperands();
666 i != e; ++i) {
667 Vals.push_back(VE.getTypeID(I.getOperand(i)->getType()));
668 Vals.push_back(VE.getValueID(I.getOperand(i)));
669669 }
670670 }
671671 break;
672 }
672673
673674 case Instruction::VAArg:
674675 Code = bitc::FUNC_CODE_INST_VAARG;