Skip to content

Commit

Permalink
llvm2alive: fix nocapture following @nikic's review
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Feb 2, 2025
1 parent 9ff342f commit 68f4afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm_util/llvm2alive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ class llvm2alive_ : public llvm::InstVisitor<llvm2alive_, unique_ptr<Instr>> {
break;

case llvm::Attribute::Captures:
if (capturesNothing(llvmattr.getCaptureInfo().getOtherComponents()))
if (capturesNothing(llvmattr.getCaptureInfo()))
attrs.set(ParamAttrs::NoCapture);
else
errorAttr(llvmattr); // TODO: support other captures
Expand Down

0 comments on commit 68f4afc

Please sign in to comment.