[PATCH] D103603: [Sema][RISCV] Allow ?: to select Typedef BuiltinType in C

Jessica Clarke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 3 04:21:54 PDT 2021


jrtc27 requested changes to this revision.
jrtc27 added inline comments.
This revision now requires changes to proceed.


================
Comment at: clang/lib/Sema/SemaExpr.cpp:8397
+  if (LHSTy->isSizelessBuiltinType() &&
+      (Context.getCanonicalType(LHSTy) == Context.getCanonicalType(RHSTy))) {
     return LHSTy;
----------------
This is Context.hasSameType, and the braces are unnecessary.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103603



More information about the cfe-commits mailing list