For proper codegen we need to capture variable in the OpenMP region. In loop-based directives loop control variables are private by default and they must be captured in this region. There was a problem with capturing of globals, used as lcv, as they was not marked as private by default.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/clang/Sema/Sema.h | ||
---|---|---|
7427 ↗ | (On Diff #24606) | Grammar error around "if it so" |
7428 ↗ | (On Diff #24606) | Use \p, not \a, for references to function parameters. |
lib/Sema/SemaOpenMP.cpp | ||
2476–2482 ↗ | (On Diff #24606) | Please just pass a flag into CheckInit to tell it not to produce diagnostics rather than disabling the diagnostics engine. |