Summary:
While working on other code I noticed folly stopped compiling
with clang. Fix that.
Test Plan: fbmake runtests (clang and gcc)
Reviewed By: lucian@fb.com
Subscribers: mathieubaudet, njormrod, bmatheny
FB internal diff:
D1618189
int main() {
folly::symbolizer::installFatalSignalHandler();
- *(int*) nullptr = 1;
+ __builtin_trap();
return 0;
}
PCHECK(::read(rfd, &buf, 1) == 1); // wait for startup
}
- CHECK_ERR(rfd >= 0);
+ CHECK_ERR(rfd);
auto s = byLine(folly::File(rfd)) | eachTo<int64_t>() | sum;
folly::doNotOptimizeAway(s);