[all-commits] [llvm/llvm-project] 23ba37: [libc++][PowerPC] Fix a test case failure when com...

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri Aug 20 10:25:01 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 23ba3732246a418e52d6d9ca17b45816ade4dc6d
      https://github.com/llvm/llvm-project/commit/23ba3732246a418e52d6d9ca17b45816ade4dc6d
  Author: Albion Fung <albion.fung at ibm.com>
  Date:   2021-08-20 (Fri, 20 Aug 2021)

  Changed paths:
    M libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp

  Log Message:
  -----------
  [libc++][PowerPC] Fix a test case failure when compiled with libcxx

The test case is not ran unless libcxx is used, and a macro
may be undefined. This patch checks for the definition of the
macro before using it.

Fixes http://llvm.org/PR51430

Differential Revision: https://reviews.llvm.org/D108352

(cherry picked from commit 4bef7a8ff169d6f9a0a253105576ac8a68430702)




More information about the All-commits mailing list