Skip to content

Commit

Permalink
Add paretntheses around a C macro parameter.
Browse files Browse the repository at this point in the history
llvm-svn: 342673
  • Loading branch information
rui314 committed Sep 20, 2018
1 parent f452337 commit 11cda0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/include/lld/Common/ErrorHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ T check2(Expected<T> E, llvm::function_ref<std::string()> Prefix) {
inline std::string toString(const Twine &S) { return S.str(); }

// To evaluate the second argument lazily, we use C macro.
#define CHECK(E, S) check2(E, [&] { return toString(S); })
#define CHECK(E, S) check2((E), [&] { return toString(S); })

} // namespace lld

Expand Down

0 comments on commit 11cda0c

Please sign in to comment.