ABataev marked 2 inline comments as done.
ABataev added inline comments.

================
Comment at: clang/include/clang/Basic/DiagnosticParseKinds.td:1230
-  "unknown '%0' device kind trait in the 'device' context selector set, 
expected"
-  " one of 'host', 'nohost', 'cpu', 'gpu' or 'fpga'">;
 
----------------
jdoerfert wrote:
> I would have expected this error to be still accurate, maybe with the 
> addition ", or quoted versions thereof".
Currently, we could emit it only in codegen phase to avoid double converting 
from expression to string. Will emit it there.


================
Comment at: clang/lib/Sema/SemaTemplateInstantiateDecl.cpp:424
+        if (ER.isUsable())
+          Values.push_back(ER);
       }
----------------
jdoerfert wrote:
> When would ER not be usable here? Is there a valid use case or should we 
> assert it is?
If the instantiation is failed, the error message is emitted and `ER` is set to 
`ExprError`, which is not usable.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70973/new/

https://reviews.llvm.org/D70973



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to