================
@@ -1135,21 +1147,19 @@ static void ValidateMultipleRegisterAnnotations(Sema 
&S, Decl *TheDecl,
 
       RegisterType otherRegType = getRegisterType(attr->getSlot());
       if (RegisterTypesDetected[static_cast<int>(otherRegType)]) {
-        if (PreviousConflicts[TheDecl].count(otherRegType))
----------------
hekota wrote:
I have removed the unused variable. and the ResourceField is gone as well. I 
think the duplicate errors are reduced by simply not creating invalid binding 
attributes, but please let me know if you think otherwise. We should not be 
emitting duplicate errors for the same binding, but if there are multiple 
bindings with the same issue we should report them all.

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

Reply via email to