diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-04 19:10:38 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-04 19:10:38 +0000 |
commit | cffb5284f12afdfa5ba9cb6dbddcf0699ec11d84 (patch) | |
tree | 794cb788091fbdd3fcf7fae97e539163b620d1f0 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | fe095f39e7009c51d1c86769792ccbcad8cdd2ec (diff) |
Fix code emission for conditional branches.
Patch by Collin Winter!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 6adb73ae25..bf9c885f37 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -1092,9 +1092,9 @@ namespace { const BranchInst* br = cast<BranchInst>(I); Out << "BranchInst::Create(" ; if (br->getNumOperands() == 3 ) { - Out << opNames[0] << ", " + Out << opNames[2] << ", " << opNames[1] << ", " - << opNames[2] << ", "; + << opNames[0] << ", "; } else if (br->getNumOperands() == 1) { Out << opNames[0] << ", "; |