================
@@ -2615,9 +2632,10 @@ std::optional<MemoryEffects> LLParser::parseMemoryAttr()
{
}
bool SeenLoc = false;
+ bool SeenTargetLoc = false;
do {
- std::optional<IRMemLocation> Loc = keywordToLoc(Lex.getKind());
- if (Loc) {
+ llvm::ArrayRef<llvm::IRMemLocation> Locs = keywordToLoc(Lex.getKind());
----------------
antoniofrighetto wrote:
```suggestion
ArrayRef<IRMemLocation> Locs = keywordToLoc(Lex.getKind());
```
https://github.com/llvm/llvm-project/pull/176968
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits