[Openmp-commits] [PATCH] D41171: [OMPT] Handle null pointer correctly in set_callback

Jim Cownie via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Dec 14 03:03:39 PST 2017

jcownie added a comment.

Can't we shorten this? 
I'd prefer

  ompt_enabled.event_name = (callback != 0);                                           \

to the if which then assigns one or zero.


More information about the Openmp-commits mailing list