[PATCH] D71475: [WIP][OPENMP] Try to fix linear clause crash by emitting alloca for step

Chi Chun Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 13 10:51:55 PST 2019


cchen added a comment.

In D71475#1783834 <https://reviews.llvm.org/D71475#1783834>, @jdoerfert wrote:

> Your commit message example lacks the #pragma.
>
> What if you add k to the list of explicit firstprivate? (I mean, you can try it in C first).
>
> And how do I reproduce the crash? I tried: https://godbolt.org/z/FDPSnA


Add firstprivate make the code work. Also, the code crash due to assertion failure and I guess the compiler explorer is using release version instead of debug version?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71475/new/

https://reviews.llvm.org/D71475





More information about the cfe-commits mailing list