diff options
author | Michael Kruse <llvm-project@meinersbur.de> | 2025-07-23 10:18:13 +0200 |
---|---|---|
committer | Michael Kruse <llvm-project@meinersbur.de> | 2025-07-23 10:22:10 +0200 |
commit | 0586067cf07bef0f04fd1dc7135a9b773ebaa07a (patch) | |
tree | d00968a55c6d16c9ad7fe9dacdb39f8b84958ec4 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c3a9e69737c0577cacddff1a2b4cfd2209fb3706 (diff) | |
download | llvm-0586067cf07bef0f04fd1dc7135a9b773ebaa07a.zip llvm-0586067cf07bef0f04fd1dc7135a9b773ebaa07a.tar.gz llvm-0586067cf07bef0f04fd1dc7135a9b773ebaa07a.tar.bz2 |
[Flang] Build fix without precompiled headers
The header semantics.h is added implitly in the precompiled headers, but
the build was failing when precompiled headers are disabled (e.g.
using CMAKE_DISABLE_PRECOMPILE_HEADERS=ON):
```
../_src/flang/lib/Semantics/canonicalize-omp.cpp: In constructor ‘Fortran::semantics::CanonicalizationOfOmp::CanonicalizationOfOmp(Fortran::semantics::SemanticsContext&)’:
../_src/flang/lib/Semantics/canonicalize-omp.cpp:31:38: error: invalid use of incomplete type ‘class Fortran::semantics::SemanticsContext’
31 | : context_{context}, messages_{context.messages()} {}
| ^~~~~~~
In file included from ../_src/flang/lib/Semantics/canonicalize-omp.cpp:9:
../_src/flang/lib/Semantics/canonicalize-omp.h:17:7: note: forward declaration of ‘class Fortran::semantics::SemanticsContext’
17 | class SemanticsContext;
| ^~~~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=1.
```
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions