[PATCH] D67052: Add reference type transformation builtins

Mark de Wever via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 3 12:41:47 PDT 2019


Mordante added inline comments.


================
Comment at: clang/lib/Parse/ParseDeclCXX.cpp:1095
+  default:
+    assert(false && "Not a reference type specifier");
+  }
----------------
Wouldn't it be better to use `llvm_unreachable("Not a reference type specifier");`
Maybe also move this line out of the switch, allowing the compiler to warn about not handled enumeration values.


================
Comment at: clang/lib/Sema/SemaType.cpp:1266
+  default:
+    assert(false && "Cannot map TST to unary transform type");
+  }
----------------
Same here?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D67052





More information about the cfe-commits mailing list