Skip to content

Commit

Permalink
Fix unlikely (#11537)
Browse files Browse the repository at this point in the history
  • Loading branch information
gongweibao authored Jun 19, 2018
1 parent d734595 commit 4dda54a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paddle/fluid/inference/analysis/argument.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* big.
*/

#pragma once

#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/inference/analysis/data_flow_graph.h"

Expand All @@ -43,7 +45,7 @@ struct Argument {

#define UNLIKELY(condition) __builtin_expect(static_cast<bool>(condition), 0)
#define ANALYSIS_ARGUMENT_CHECK_FIELD(field__) \
if (!UNLIKELY(field__)) { \
if (UNLIKELY(!(field__))) { \
LOG(ERROR) << "field " << #field__ << " should be set."; \
return false; \
}
Expand Down

0 comments on commit 4dda54a

Please sign in to comment.