summaryrefslogtreecommitdiff
path: root/include/lld/Common/ErrorHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lld/Common/ErrorHandler.h')
-rw-r--r--include/lld/Common/ErrorHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lld/Common/ErrorHandler.h b/include/lld/Common/ErrorHandler.h
index f17f7cc99035..c169f7b50de8 100644
--- a/include/lld/Common/ErrorHandler.h
+++ b/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