[all-commits] [llvm/llvm-project] cb3ea5: Handle char{8, 16, 32} and wchar_t in ASTContext::ge...

Hans via All-commits all-commits at lists.llvm.org
Wed Dec 7 07:16:54 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb3ea52a5ae5178b8cd257bd61c6e05d9a186b4d
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    M clang/test/SemaCXX/vector.cpp

  Log Message:
  Handle char{8,16,32} and wchar_t in ASTContext::getIntegerRank()

They were previously not handled, causing the llvm_unreachable with
"getIntegerRank(): not a built-in integer" message to be hit.

The test case is derived from how we hit it in Chromium
(crbug.com/1396142). I tried to come up with something more direct, but
this is the best I could find.

Differential revision: https://reviews.llvm.org/D139428

More information about the All-commits mailing list