================
@@ -2646,6 +2646,9 @@ bool Parser::ParseCXXMemberDeclaratorBeforeInitializer(
   else
     DeclaratorInfo.SetIdentifier(nullptr, Tok.getLocation());
 
+  if (getLangOpts().HLSL)
----------------
damyanp wrote:

I'm not proposing we combine them.  My observation is that one of them will do 
the right thing if you call it outside of HLSL mode and the other one will do 
the wrong thing.  So, if you were to switch from using one overload to another 
you may find that you've introduce a surprising bug.

https://github.com/llvm/llvm-project/pull/96346
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to