[clang][cli] Fix round-trip of OPT_plugin_arg
authorJohn Brawn <john.brawn@arm.com>
Tue, 30 Mar 2021 17:33:10 +0000 (18:33 +0100)
committerJohn Brawn <john.brawn@arm.com>
Tue, 30 Mar 2021 17:33:10 +0000 (18:33 +0100)
commiteae3b2a715d7fd1aea0ce1c78ac7a04957b72728
tree2238c7e62b9eac2c10cd22c94e56b4199ab04639
parent700431128e212d5ef53afb6d20da098ca264cadd
[clang][cli] Fix round-trip of OPT_plugin_arg

The test Frontend/plugin-delayed-template.cpp is failing when asserts
are enabled because it hits an assertion in denormalizeStringImpl when
trying to round-trip OPT_plugin_arg. Fix this by adjusting how the
option is handled, as the first part is joined to -plugin-arg and the
second is separate.

Differential Revision: https://reviews.llvm.org/D99606
clang/lib/Frontend/CompilerInvocation.cpp