[all-commits] [llvm/llvm-project] c033f0: [Clang][Sema] Avoid crashing for va_arg expression...

Egor Zhdan via All-commits all-commits at lists.llvm.org
Fri Jan 7 01:42:02 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c033f0d9b1c7816b0488a939475d48a100e4dcab
  Author: Egor Zhdan <e_zhdan at apple.com>
  Date:   2022-01-07 (Fri, 07 Jan 2022)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/SemaCXX/varargs.cpp

  Log Message:
  [Clang][Sema] Avoid crashing for va_arg expressions with bool argument

This change fixes a compiler crash that was introduced in https://reviews.llvm.org/D103611: `Sema::BuildVAArgExpr` attempted to retrieve a corresponding signed type for `bool` by calling `ASTContext::getCorrespondingSignedType`.


Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D116272

More information about the All-commits mailing list