Skip to content

Commit

Permalink
Set memory(none) instead of readonly on strand_pure function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
VoxSciurorum authored and neboat committed Oct 18, 2023
1 parent 03a724d commit e22b0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/CodeGen/CGCall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
}
if (TargetDecl->hasAttr<StrandPureAttr>()) {
FuncAttrs.addAttribute(llvm::Attribute::StrandPure);
FuncAttrs.addAttribute(llvm::Attribute::ReadOnly);
FuncAttrs.addMemoryAttr(llvm::MemoryEffects::readOnly());
FuncAttrs.addAttribute(llvm::Attribute::NoUnwind);
}
if (TargetDecl->hasAttr<ReducerRegisterAttr>()) {
Expand Down

0 comments on commit e22b0d1

Please sign in to comment.