[clang][cli] Generate -f[no-]finite-loops arguments
authorJan Svoboda <jan_svoboda@apple.com>
Tue, 16 Feb 2021 13:27:21 +0000 (14:27 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Tue, 16 Feb 2021 13:39:20 +0000 (14:39 +0100)
commit32389346ed83e14b7a9bd3a31a96181c6a1cdb5e
treed1684aea780f92f1a40730ac2e35aaa5d1c779bc
parent13f4448ae7db1a477ec2d48776e46415a3401314
[clang][cli] Generate -f[no-]finite-loops arguments

This patch generates the `-f[no-]finite-loops` arguments from `CompilerInvocation` (added in D96419), fixing test failures of Clang built with `-DCLANG_ROUND_TRIP_CC1_ARGS=ON`.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D96761
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGenCXX/attr-mustprogress.cpp