diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-02 08:54:30 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-02 08:54:30 +0000 | 
| commit | 104bd8179fb5f6551c65c94ebcd0a4918b060189 (patch) | |
| tree | cf5763d092b81cecc168fa28032247ee495d06e2 /lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 2f12f10af369d468b14617276446166383d692ed (diff) | |
Notes
Diffstat (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp')
| -rw-r--r-- | lib/Bitcode/Writer/BitcodeWriter.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 3ab272666749..1f69e1685166 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1090,11 +1090,11 @@ static void WriteInstruction(const Instruction &I, unsigned InstID,      // Emit value #'s for the fixed parameters.      for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i) -      Vals.push_back(VE.getValueID(I.getOperand(i+3)));  // fixed param. +      Vals.push_back(VE.getValueID(I.getOperand(i)));  // fixed param.      // Emit type/value pairs for varargs params.      if (FTy->isVarArg()) { -      for (unsigned i = 3+FTy->getNumParams(), e = I.getNumOperands(); +      for (unsigned i = FTy->getNumParams(), e = I.getNumOperands()-3;             i != e; ++i)          PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg      }  | 
