================
@@ -185,6 +185,7 @@ void Parser::ParseHLSLAnnotations(ParsedAttributes &Attrs,
   if (EndLoc)
     *EndLoc = Tok.getLocation();
 
+  SourceLocation AttrEndLoc = Loc;
----------------
mafeguimaraes wrote:

I considered reusing `EndLoc`, but I kept it separate because the two locations 
have different meanings. `EndLoc` refers to the end of the identifier, while 
`AttrEndLoc` refers to the end of the full `register(...)` attribute. 

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

Reply via email to