This is an archive of the discontinued LLVM Phabricator instance.

Bug fix for 26602: Remove function bodies with KMP_ASSERT(0)
ClosedPublic

Authored by tlwilmar on Jun 13 2016, 12:47 PM.

Details

Summary

Fix for bugzilla https://llvm.org/bugs/show_bug.cgi?id=26602.
Removed functions body consisted of the only KMP_ASSERT(0) statement.
Thus possible runtime crash converted to compile-time error, which
looks preferable (faster possible error detection).

TODO: consider C++11 static assert as an alternative, that could
make the diagnostics better.

Patch by Andrey Churbanov

Diff Detail

Repository
rL LLVM

Event Timeline

tlwilmar updated this revision to Diff 60588.Jun 13 2016, 12:47 PM
tlwilmar retitled this revision from to Bug fix for 26602: Remove function bodies with KMP_ASSERT(0).
tlwilmar updated this object.
tlwilmar added reviewers: jlpeyton, hbae.
tlwilmar set the repository for this revision to rL LLVM.
tlwilmar added a subscriber: openmp-commits.
jlpeyton accepted this revision.Jun 13 2016, 2:31 PM
jlpeyton edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jun 13 2016, 2:31 PM
This revision was automatically updated to reflect the committed changes.