Skip to content

Commit a7d131f

Browse files
committed
Merging r143712:
------------------------------------------------------------------------ r143712 | efriedma | 2011-11-04 10:29:35 -0700 (Fri, 04 Nov 2011) | 3 lines Add missing argument for atomic instructions in c++ backend. PR11268, part 2. ------------------------------------------------------------------------ llvm-svn: 143999
1 parent 0fbdb0a commit a7d131f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/CppBackend/CPPBackend.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ void CppWriter::printInstruction(const Instruction *I,
14921492
StringRef CrossThread = ConvertAtomicSynchScope(fi->getSynchScope());
14931493
Out << "FenceInst* " << iName
14941494
<< " = new FenceInst(mod->getContext(), "
1495-
<< Ordering << ", " << CrossThread
1495+
<< Ordering << ", " << CrossThread << ", " << bbname
14961496
<< ");";
14971497
break;
14981498
}
@@ -1503,7 +1503,7 @@ void CppWriter::printInstruction(const Instruction *I,
15031503
Out << "AtomicCmpXchgInst* " << iName
15041504
<< " = new AtomicCmpXchgInst("
15051505
<< opNames[0] << ", " << opNames[1] << ", " << opNames[2] << ", "
1506-
<< Ordering << ", " << CrossThread
1506+
<< Ordering << ", " << CrossThread << ", " << bbname
15071507
<< ");";
15081508
nl(Out) << iName << "->setName(\"";
15091509
printEscapedString(cxi->getName());
@@ -1533,7 +1533,7 @@ void CppWriter::printInstruction(const Instruction *I,
15331533
<< " = new AtomicRMWInst("
15341534
<< Operation << ", "
15351535
<< opNames[0] << ", " << opNames[1] << ", "
1536-
<< Ordering << ", " << CrossThread
1536+
<< Ordering << ", " << CrossThread << ", " << bbname
15371537
<< ");";
15381538
nl(Out) << iName << "->setName(\"";
15391539
printEscapedString(rmwi->getName());

0 commit comments

Comments
 (0)