[all-commits] [llvm/llvm-project] d2cb18: [X86] Use a do {} while (0) in the _MM_EXTRACT_FLO...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Aug 14 16:49:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d2cb18918498b8a39657af2a495eba3e983c159b
      https://github.com/llvm/llvm-project/commit/d2cb18918498b8a39657af2a495eba3e983c159b
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-08-14 (Sat, 14 Aug 2021)

  Changed paths:
    M clang/lib/Headers/smmintrin.h

  Log Message:
  -----------
  [X86] Use a do {} while (0) in the _MM_EXTRACT_FLOAT implementation.

Previously we just used {}, but that doesn't work in situations
like this.

if (1)
  _MM_EXTRACT_FLOAT(d, x, n);
else
  ...

The semicolon would terminate the if.




More information about the All-commits mailing list