[all-commits] [llvm/llvm-project] 6be1a1: [clang][c++20] Fix code coverage mapping crash wit...

Andrey Ali Khan Bolshakov via All-commits all-commits at lists.llvm.org
Fri May 24 13:04:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6be1a1535ef4ea30f301586e4960bebbfccfe851
      https://github.com/llvm/llvm-project/commit/6be1a1535ef4ea30f301586e4960bebbfccfe851
  Author: Andrey Ali Khan Bolshakov <bolsh.andrey at yandex.ru>
  Date:   2024-05-24 (Fri, 24 May 2024)

  Changed paths:
    M clang/lib/CodeGen/CoverageMappingGen.cpp
    M clang/test/CoverageMapping/templates.cpp

  Log Message:
  -----------
  [clang][c++20] Fix code coverage mapping crash with generalized NTTPs (#85837)

Introduced in #78041, originally reported as #79957 and fixed partially
in #80050.

`OpaqueValueExpr` used with `TemplateArgument::StructuralValue` has no
corresponding source expression.

A test case with subobject-referring NTTP added.



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