summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins-wasm.c
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-11-16 00:48:58 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-11-16 00:48:58 +0000
commitad9d68c2b44dce12e13bf038f27ba5182b655345 (patch)
tree9c80e8436737d9deeb2ce83674584acbc66f8224 /clang/test/CodeGen/builtins-wasm.c
parentfb7d1a92e6198651e92ace2e6224b2d8d33fc644 (diff)
downloadbcm5719-llvm-ad9d68c2b44dce12e13bf038f27ba5182b655345.tar.gz
bcm5719-llvm-ad9d68c2b44dce12e13bf038f27ba5182b655345.zip
[WebAssembly] Change type of wake count to unsigned int
Summary: We discussed this at the Nov 12th CG meeting, and decided to use the unsigned semantics for the wake count. Corresponding spec change: https://github.com/WebAssembly/threads/pull/110 Reviewers: sbc100 Subscribers: dschuff, jgravelle-google, sunfish, jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D54572 llvm-svn: 347005
Diffstat (limited to 'clang/test/CodeGen/builtins-wasm.c')
-rw-r--r--clang/test/CodeGen/builtins-wasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/builtins-wasm.c b/clang/test/CodeGen/builtins-wasm.c
index dc1923e5d4e..dce721ef5a5 100644
--- a/clang/test/CodeGen/builtins-wasm.c
+++ b/clang/test/CodeGen/builtins-wasm.c
@@ -77,7 +77,7 @@ int atomic_wait_i64(long long *addr, long long expected, long long timeout) {
// WEBASSEMBLY64: call i32 @llvm.wasm.atomic.wait.i64(i64* %{{.*}}, i64 %{{.*}}, i64 %{{.*}})
}
-unsigned int atomic_notify(int *addr, int count) {
+unsigned int atomic_notify(int *addr, unsigned int count) {
return __builtin_wasm_atomic_notify(addr, count);
// WEBASSEMBLY32: call i32 @llvm.wasm.atomic.notify(i32* %{{.*}}, i32 %{{.*}})
// WEBASSEMBLY64: call i32 @llvm.wasm.atomic.notify(i32* %{{.*}}, i32 %{{.*}})
OpenPOWER on IntegriCloud