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

Egor Zhdan via All-commits all-commits at lists.llvm.org
Fri Jan 7 23:58:20 PST 2022


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: bfb1bd1b9906356c747ac480bc44230790c87cb1
      https://github.com/llvm/llvm-project/commit/bfb1bd1b9906356c747ac480bc44230790c87cb1
  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`.

rdar://86580370

Reviewed By: aaron.ballman

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

(cherry picked from commit c033f0d9b1c7816b0488a939475d48a100e4dcab)




More information about the All-commits mailing list