[PATCH] D100616: [clang] Fix a potential assert failure

Ben Shi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 15 20:14:41 PDT 2021


benshi001 created this revision.
benshi001 added a reviewer: MaskRay.
Herald added subscribers: s.egerton, simoncook, dschuff.
benshi001 requested review of this revision.
Herald added subscribers: cfe-commits, aheejin.
Herald added a project: clang.

The calculation of LargestBuiltinID needs all targets information.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100616

Files:
  clang/include/clang/Basic/TargetBuiltins.h


Index: clang/include/clang/Basic/TargetBuiltins.h
===================================================================
--- clang/include/clang/Basic/TargetBuiltins.h
+++ clang/include/clang/Basic/TargetBuiltins.h
@@ -334,9 +334,9 @@
       {NEON::FirstTSBuiltin, ARM::LastTSBuiltin, SVE::FirstTSBuiltin,
        AArch64::LastTSBuiltin, BPF::LastTSBuiltin, PPC::LastTSBuiltin,
        NVPTX::LastTSBuiltin, AMDGPU::LastTSBuiltin, X86::LastTSBuiltin,
-       Hexagon::LastTSBuiltin, Mips::LastTSBuiltin, XCore::LastTSBuiltin,
-       Le64::LastTSBuiltin, SystemZ::LastTSBuiltin,
-       WebAssembly::LastTSBuiltin});
+       VE::LastTSBuiltin, RISCV::LastTSBuiltin, Hexagon::LastTSBuiltin,
+       Mips::LastTSBuiltin, XCore::LastTSBuiltin, Le64::LastTSBuiltin,
+       SystemZ::LastTSBuiltin, WebAssembly::LastTSBuiltin});
 
 } // end namespace clang.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100616.337971.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210416/a5742673/attachment.bin>


More information about the cfe-commits mailing list