This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP]Fix PR49052: Clang crashed when compiling target code with assert(0).
ClosedPublic

Authored by ABataev on Mar 26 2021, 2:37 PM.

Details

Summary

Need to insert a basic block during generation of the target region to
avoid crash for the GPU to be able always calling a cleanup action.
This cleanup action is required for the correct emission of the target
region for the GPU.

Diff Detail

Event Timeline

ABataev created this revision.Mar 26 2021, 2:37 PM
ABataev requested review of this revision.Mar 26 2021, 2:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 26 2021, 2:37 PM
Herald added a subscriber: sstefan1. · View Herald Transcript
This revision is now accepted and ready to land.Mar 26 2021, 3:21 PM