================
@@ -2636,9 +2654,18 @@ std::optional<MemoryEffects> LLParser::parseMemoryAttr() 
{
     }
 
     Lex.Lex();
-    if (Loc) {
+    if (!Locs.empty()) {
       SeenLoc = true;
-      ME = ME.getWithModRef(*Loc, *MR);
+      for (const llvm::IRMemLocation &Loc : Locs) {
----------------
antoniofrighetto wrote:

```suggestion
      for (const IRMemLocation &Loc : Locs) {
```

https://github.com/llvm/llvm-project/pull/176968
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to