Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix segfault in clang plugin #5437

Merged
merged 13 commits into from
Jul 9, 2021
Merged

fix segfault in clang plugin #5437

merged 13 commits into from
Jul 9, 2021

Conversation

daquexian
Copy link
Contributor

  1. 只在 !returnType.isNull() && returnType->isClassType() 成立时调用 getAsString(),避免 segfault
  2. 不设置 ONEFLOW_MAYBE_CHECK_ONLY_FN 和 ONEFLOW_MAYBE_CHECK_SKIP_FN(没有必要了),改为只在编译 oneflow 本体时设置 plugin

daquexian added 7 commits July 9, 2021 09:37
Signed-off-by: daquexian <daquexian566@gmail.com>
Signed-off-by: daquexian <daquexian566@gmail.com>
Signed-off-by: daquexian <daquexian566@gmail.com>
Signed-off-by: daquexian <daquexian566@gmail.com>
Signed-off-by: daquexian <daquexian566@gmail.com>
Signed-off-by: daquexian <daquexian566@gmail.com>
@oneflow-ci-bot oneflow-ci-bot self-requested a review July 9, 2021 04:50
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 9, 2021 06:38
daquexian and others added 2 commits July 9, 2021 15:00
Signed-off-by: daquexian <daquexian566@gmail.com>
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 9, 2021 08:54
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 9, 2021 10:51
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 9, 2021 12:31
@oneflow-ci-bot oneflow-ci-bot merged commit 07a274b into master Jul 9, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the clang_plugin_fix branch July 9, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants