Add paretntheses around a C macro parameter.
authorRui Ueyama <ruiu@google.com>
Thu, 20 Sep 2018 18:24:19 +0000 (18:24 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 20 Sep 2018 18:24:19 +0000 (18:24 +0000)
llvm-svn: 342673

lld/include/lld/Common/ErrorHandler.h

index f17f7cc..c169f7b 100644 (file)
@@ -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