Skip to content

Commit 2896ba3

Browse files
committed
remove unnecessary changes
1 parent 8c5fca4 commit 2896ba3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gen/ms-cxx-helper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void cloneBlocks(const std::vector<llvm::BasicBlock *> &srcblocks,
9696
for (auto bb : srcblocks) {
9797
llvm::Function *F = bb->getParent();
9898
auto nbb = llvm::BasicBlock::Create(bb->getContext(), bb->getName());
99-
99+
// Loop over all instructions, and copy them over.
100100
for (auto &II : *bb) {
101101
llvm::Instruction *Inst = &II;
102102
llvm::Instruction *newInst = nullptr;
@@ -117,7 +117,7 @@ void cloneBlocks(const std::vector<llvm::BasicBlock *> &srcblocks,
117117
newInst = Inst->clone();
118118

119119
newInst->insertInto(nbb, nbb->end());
120-
VMap[Inst] = newInst;
120+
VMap[Inst] = newInst; // Add instruction map to value.
121121
if (unwindTo)
122122
if (auto dest = getUnwindDest(Inst))
123123
VMap[dest] = unwindTo;

0 commit comments

Comments
 (0)