getAssociatedStmt() contains an assertion that assumes the statement always exists. In device code scanning, we need to look into the associated statement therefore we check its existence. This patch replaces getAssociatedStmt by hasAssociatedStmt so that we do not trigger the assertion for directives that happen not to have an associated statement (e.g target enter/exit data).
Details
Details
- Reviewers
kkwli0 arpith-jacob carlo.bertolli ABataev hfinkel - Commits
- rGe49645cf1244: [OpenMP] Check for associated statements with hasAssociatedStmt() when scanning…
rC268870: [OpenMP] Check for associated statements with hasAssociatedStmt() when scanning…
rL268870: [OpenMP] Check for associated statements with hasAssociatedStmt() when…
Diff Detail
Diff Detail