[WebAssembly] Improve macro hygiene in wasm_simd128.h
authorThomas Lively <tlively@google.com>
Tue, 2 Jun 2020 19:55:06 +0000 (12:55 -0700)
committerThomas Lively <tlively@google.com>
Tue, 2 Jun 2020 19:55:06 +0000 (12:55 -0700)
commit237be3404b448637ec3b36f8992434193c5bc64c
tree44ab54d77e59ff87d253696d6caf2a76f90c7b90
parentb836ae24a9f4202a73a227bc3dac9b1a40979a7d
[WebAssembly] Improve macro hygiene in wasm_simd128.h

Summary:
The shuffle intrinsic macros did not parenthesize usages of their
constant parameters, which could lead to incorrect results due to
operator precedence issues. This patch fixes the problem by adding the
missing paretheses.

Reviewers: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, sunfish, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80968
clang/lib/Headers/wasm_simd128.h