[all-commits] [llvm/llvm-project] 1ddd58: [clang] Missed rounding mode use in constant evalu...

Serge Pavlov via All-commits all-commits at lists.llvm.org
Wed Nov 16 21:06:31 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ddd5863088b56f8614fb5a17abd2968c05790c3
      https://github.com/llvm/llvm-project/commit/1ddd5863088b56f8614fb5a17abd2968c05790c3
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2022-11-17 (Thu, 17 Nov 2022)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/AST/const-fpfeatures.c

  Log Message:
  -----------
  [clang] Missed rounding mode use in constant evaluation

Integer-to-float conversion was handled in constant evaluator with
default rounding mode. This change fixes the behavior and the conversion
is made using rounding mode stored in ImplicitCastExpr node.

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




More information about the All-commits mailing list