================
@@ -274,13 +274,16 @@ class PrototypeParser {
if (AS)
Type += std::to_string(*AS);
} else if (T.consume_back("const")) {
- ParseType(T);
+ if (!T.empty())
+ ParseType(T);
----------------
jhuber6 wrote:
Would it make sense to instead just have `ParseType` return if it's empty? Or
is there some error handling gated behind that.
https://github.com/llvm/llvm-project/pull/207091
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits