Previously function template instantiations occurred with FP options
that were in effect at the end of translation unit. It was an problem
for late template parsing as these options were used as attributes of
AST nodes and may result in crash. With this change the FP options are
reset to the set defined by command line options before every
function instatntiation.
Details
Details
- Reviewers
rsmith rjmccall aaron.ballman efriedma
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Using the FPOptions from the beginning of the file doesn't seem much better than the FPOptions at the end of the file. Don't we want to use the FPOptions from the point of definition of the template?