[all-commits] [llvm/llvm-project] 3f1459: [OpenMP] Ensure the DefaultMapperId has a location

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu May 6 00:10:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f14596700093bce436ae27178c307e842398b65
      https://github.com/llvm/llvm-project/commit/3f14596700093bce436ae27178c307e842398b65
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M clang/lib/Sema/SemaOpenMP.cpp

  Log Message:
  -----------
  [OpenMP] Ensure the DefaultMapperId has a location

A user reported an assertion (below) but without a reproducer. I failed to
create a test myself but from the assertion one can derive the problem.
I set the DefaultMapperId location now to make sure this doesn't cause
trouble.

```
clang-13: .../DeclTemplate.h:1940:
void clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(clang::SourceLocation):
Assertion `Loc.isValid() && "point of instantiation must be valid!"' failed.
```

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list