[all-commits] [llvm/llvm-project] 98390c: [Clang] Reset FP options before function instantia...

Serge Pavlov via All-commits all-commits at lists.llvm.org
Wed Jun 28 06:13:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98390ccb80569e8fbb20e6c996b4b8cff87fbec6
      https://github.com/llvm/llvm-project/commit/98390ccb80569e8fbb20e6c996b4b8cff87fbec6
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2023-06-28 (Wed, 28 Jun 2023)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Parse/ParseTemplate.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/CodeGen/fp-template.cpp

  Log Message:
  -----------
  [Clang] Reset FP options before function instantiations

Previously function template instantiations occurred with FP options
that were in effect at the end of translation unit. It was a problem
for late template parsing as these FP options were used as attributes of
AST nodes and may result in crash. To fix it FP options are set to the
state of the point of template definition.

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




More information about the All-commits mailing list