[all-commits] [llvm/llvm-project] 237be3: [WebAssembly] Improve macro hygiene in wasm_simd128.h
Thomas Lively via All-commits
all-commits at lists.llvm.org
Tue Jun 2 12:55:26 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 237be3404b448637ec3b36f8992434193c5bc64c
https://github.com/llvm/llvm-project/commit/237be3404b448637ec3b36f8992434193c5bc64c
Author: Thomas Lively <tlively at google.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)
Changed paths:
M clang/lib/Headers/wasm_simd128.h
Log Message:
-----------
[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
More information about the All-commits
mailing list