Skip to content

Commit

Permalink
Update src/llvm-simdloop.cpp
Browse files Browse the repository at this point in the history
Co-Authored-By: maleadt <tim.besard@gmail.com>
  • Loading branch information
vchuravy and maleadt authored Apr 11, 2019
1 parent 0afa9a3 commit 62c80cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm-simdloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ bool LowerSIMDLoop::markSIMDLoop(Module &M, Function *marker, bool ivdep)
MDNode *n = L->getLoopID();
if (!n) {
// Loop does not have a LoopID yet, so give it one.
auto temp_n = MDNode::getTemporary(Lh->getContext(), ArrayRef<Metadata *>(NULL));
TempMDTuple temp_n = MDNode::getTemporary(Lh->getContext(), None);
temp_n->replaceOperandWith(0, temp_n.get());
n = MDNode::replaceWithPermanent(std::move(temp_n));
L->setLoopID(n);
Expand Down

0 comments on commit 62c80cc

Please sign in to comment.