[all-commits] [llvm/llvm-project] a139f8: [Clang][Sema] fix assertion failure about invalid ...

Zhikai Zeng via All-commits all-commits at lists.llvm.org
Fri Jun 28 07:28:42 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a139f8480f200a673e184b1a7d1907a3e16cca56
      https://github.com/llvm/llvm-project/commit/a139f8480f200a673e184b1a7d1907a3e16cca56
  Author: Zhikai Zeng <backlight.zzk at gmail.com>
  Date:   2024-06-28 (Fri, 28 Jun 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaOverload.cpp
    A clang/test/SemaCXX/lambda-call.cpp

  Log Message:
  -----------
  [Clang][Sema] fix assertion failure about invalid conversion when calling lambda (#96431)

fixes https://github.com/llvm/llvm-project/issues/96205

The cause is that some `Conversions[ConvIdx]` here is not initialized 


https://github.com/llvm/llvm-project/blob/eb76bc38ffc286e62fdb8f8d897b5de04b2575be/clang/lib/Sema/SemaOverload.cpp#L7888-L7901

and we do not check whether `Cand->Conversions[I]` is initialized or not
here.


https://github.com/llvm/llvm-project/blob/eb76bc38ffc286e62fdb8f8d897b5de04b2575be/clang/lib/Sema/SemaOverload.cpp#L12148-L12158



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list