[PATCH] D12001: Implement __emutls_get_address

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 14:30:42 PDT 2015


joerg added inline comments.

================
Comment at: compiler-rt/lib/builtins/int_util.h:31
@@ +30,3 @@
+    typedef char dummy[(pred) ? 0 : -1] __attribute__((unused)); \
+}
+
----------------
More like:

#define COMPILE_TIME_ASSERT0(pred,cnt) typedef char dummy#cnt[(pred) ? 1 : -1]
#define COMPILE_TIME_ASSERT(pred) COMPILE_TIME_ASSERT0(pred,__LINE__)

or so.


http://reviews.llvm.org/D12001





More information about the llvm-commits mailing list