projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f452337
)
Add paretntheses around a C macro parameter.
author
Rui Ueyama
<ruiu@google.com>
Thu, 20 Sep 2018 18:24:19 +0000
(18:24 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Thu, 20 Sep 2018 18:24:19 +0000
(18:24 +0000)
llvm-svn: 342673
lld/include/lld/Common/ErrorHandler.h
patch
|
blob
|
history
diff --git
a/lld/include/lld/Common/ErrorHandler.h
b/lld/include/lld/Common/ErrorHandler.h
index
f17f7cc
..
c169f7b
100644
(file)
--- 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