aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorJennifer Yu <jennifer.yu@intel.com>2023-05-30 10:20:31 -0700
committerJennifer Yu <jennifer.yu@intel.com>2023-05-30 16:40:06 -0700
commitaaa33b6a98de2be7cdc827b13e60c103206d6461 (patch)
tree67eb6dcdff2af9d3bcb94eb662073761c327e02c /clang/lib/Basic/Module.cpp
parent79fadde50a7e3200e1e3576852f1aa932459ec1e (diff)
downloadllvm-aaa33b6a98de2be7cdc827b13e60c103206d6461.zip
llvm-aaa33b6a98de2be7cdc827b13e60c103206d6461.tar.gz
llvm-aaa33b6a98de2be7cdc827b13e60c103206d6461.tar.bz2
Fix assert "DeclRefExpr for Decl not entered in LocalDeclMap?"
Currently compiler assert when passing variable "memspace" in omp_init_allocator. omp_allocator_handle_t alloc=omp_init_allocator(memspace,1,traits) The problem is memspace is not mapping to the target region. During the call to emitAllocatorInit, calls to EmitVarDecl for "alloc", then emit initialization of "alloc" that cause to assert. If I understant correct, it is not necessary to emit variable initialization, since "allocator" is private to target region. To fix this call CGF.EmitAutoVarAlloca(allocator) instead CGF.EmitVarDecl(allocator). Differential Revision: https://reviews.llvm.org/D151743
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions