This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP]Fix PR48607: Crash during clang openmp codegen for firstprivate() of `float _Complex`.
ClosedPublic

Authored by ABataev on Mar 30 2021, 1:15 PM.

Details

Summary

Need to cast the argument for the debug wrapper function call to the
corresponding parameter type to avoid crash.

Diff Detail

Event Timeline

ABataev created this revision.Mar 30 2021, 1:15 PM
ABataev requested review of this revision.Mar 30 2021, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2021, 1:15 PM
Herald added a subscriber: sstefan1. · View Herald Transcript
jdoerfert accepted this revision.Mar 30 2021, 1:37 PM

LG, one nit.

clang/lib/CodeGen/CGStmtOpenMP.cpp
644

leftover?

This revision is now accepted and ready to land.Mar 30 2021, 1:37 PM
ABataev added inline comments.Mar 30 2021, 1:38 PM
clang/lib/CodeGen/CGStmtOpenMP.cpp
644

yes, need to restore original code here

This revision was landed with ongoing or failed builds.Mar 30 2021, 1:44 PM
This revision was automatically updated to reflect the committed changes.