<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - nullptr passed as operand argument to the call to __kmpc_fork_teams"
   href="https://bugs.llvm.org/show_bug.cgi?id=46587">46587</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>nullptr passed as operand argument to the call to __kmpc_fork_teams
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>OpenMP
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jennifer.yu@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23679" name="attach_23679" title="small test case">attachment 23679</a> <a href="attachment.cgi?id=23679&action=edit" title="small test case">[details]</a></span>
small test case

<span class="quote">>clang -cc1  -fopenmp  -emit-llvm -o - x.c</span >
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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>