summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-01-13 16:47:51 +0000
committerDan Gohman <dan433584@gmail.com>2016-01-13 16:47:51 +0000
commit6af46933a83b60535deab8e30a8ded9082abc003 (patch)
tree06ef9c9f9a652a25d965c6cb02c2aba20d2d8faf
parent71f1dbb5792fb0d273a66b42489a3c176077647e (diff)
downloadcompiler-rt-6af46933a83b60535deab8e30a8ded9082abc003.tar.gz
[WebAssembly] clang supports int128_t on wasm32 in addition to wasm64.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@257618 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/builtins/int_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/builtins/int_types.h b/lib/builtins/int_types.h
index 2dad43bc7..660385ecd 100644
--- a/lib/builtins/int_types.h
+++ b/lib/builtins/int_types.h
@@ -61,7 +61,8 @@ typedef union
} udwords;
/* MIPS64 issue: PR 20098 */
-#if defined(__LP64__) && !(defined(__mips__) && defined(__clang__))
+#if (defined(__LP64__) || defined(__wasm__)) && \
+ !(defined(__mips__) && defined(__clang__))
#define CRT_HAS_128BIT
#endif