diff options
author | Rui Ueyama <ruiu@google.com> | 2018-09-20 18:24:19 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-09-20 18:24:19 +0000 |
commit | 11cda0cbaeb9d3d8314479f6c6514a3ccf54a40c (patch) | |
tree | 9241f4e07e1c858989eaf02bbde740e6a4704884 /lld/include/lld | |
parent | f4523377872488ef98bf3699b476bd62fccc6988 (diff) | |
download | bcm5719-llvm-11cda0cbaeb9d3d8314479f6c6514a3ccf54a40c.tar.gz bcm5719-llvm-11cda0cbaeb9d3d8314479f6c6514a3ccf54a40c.zip |
Add paretntheses around a C macro parameter.
llvm-svn: 342673
Diffstat (limited to 'lld/include/lld')
-rw-r--r-- | lld/include/lld/Common/ErrorHandler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/include/lld/Common/ErrorHandler.h b/lld/include/lld/Common/ErrorHandler.h index f17f7cc9903..c169f7b50de 100644 --- a/lld/include/lld/Common/ErrorHandler.h +++ b/lld/include/lld/Common/ErrorHandler.h @@ -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 |