We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df25852 commit 1eb05a1Copy full SHA for 1eb05a1
offload/include/OffloadPolicy.h
@@ -53,11 +53,7 @@ class OffloadPolicy {
53
54
public:
55
static bool isOffloadDisabled() {
56
- if((kmp_target_offload_kind_t)__kmpc_get_target_offload() ==
57
- tgt_disabled) {
58
- return true;
59
- }
60
- return false;
+ return static_cast<kmp_target_offload_kind_t>(__kmpc_get_target_offload()) == tgt_disabled);
61
}
62
63
static const OffloadPolicy &get(PluginManager &PM) {
0 commit comments