[all-commits] [llvm/llvm-project] 578a4c: [libc][NFC] Clear all exceptions in exception_flag...

Siva Chandra via All-commits all-commits at lists.llvm.org
Wed Jun 30 13:48:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 578a4cfe19121df5e5e02bf03482233e3bc56a0d
      https://github.com/llvm/llvm-project/commit/578a4cfe19121df5e5e02bf03482233e3bc56a0d
  Author: Siva Chandra <sivachandra at google.com>
  Date:   2021-06-30 (Wed, 30 Jun 2021)

  Changed paths:
    M libc/test/src/fenv/exception_flags_test.cpp

  Log Message:
  -----------
  [libc][NFC] Clear all exceptions in exception_flags_test before raising another.

This is because, raising some exceptions can raise other ones. For
example, raising FE_OVERFLOW can raise FE_INEXACT. So, we need to clear all
exceptions if we want a clean slate.




More information about the All-commits mailing list