[llvm-bugs] [Bug 46587] New: nullptr passed as operand argument to the call to __kmpc_fork_teams

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jul 4 14:40:11 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46587

            Bug ID: 46587
           Summary: nullptr passed as operand argument to the call to
                    __kmpc_fork_teams
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: OpenMP
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jennifer.yu at intel.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 23679
  --> https://bugs.llvm.org/attachment.cgi?id=23679&action=edit
small test case

>clang -cc1  -fopenmp  -emit-llvm -o - x.c
Operand is null
  call void (%struct.ident_t*, i32, void (i32*, i32*, ...)*, ...)
@__kmpc_fork_teams(%struct.ident_t* @2, i32 4, void (i32*, i32*, ...)* bitcast
(void (i32*, i32*, i64, i32*, i32*, i32*)* @.omp_outlined. to void (i32*, i32*,
...)*), <null operand!>, i32* %conv, i32* %1, i32* %conv1)
in function __omp_offloading_806_190148a_main_l9
fatal error: error in backend: Broken function found, compilation aborted!

It seem when generate Argement for data[n], the VLASizeMap is not set. So
nullptr gets pass to function call of __kmpc_fork_teams

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200704/eaab9c23/attachment.html>


More information about the llvm-bugs mailing list