================
@@ -2614,9 +2628,19 @@ std::optional<MemoryEffects> LLParser::parseMemoryAttr() 
{
     }
 
     Lex.Lex();
-    if (Loc) {
+    if (Locs) {
       SeenLoc = true;
-      ME = ME.getWithModRef(*Loc, *MR);
+      for (IRMemLocation Loc : *Locs) {
+        ME = ME.getWithModRef(Loc, *MR);
+        SeenTargetLoc = (ME.isTargetMemLoc(Loc) && Locs->size() == 1)
+                            ? true
+                            : SeenTargetLoc;
----------------
antoniofrighetto wrote:

```suggestion
        if (ME.isTargetMemLoc(Loc) && Locs->size() == 1)
            SeenTargetLoc = true;
```

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