================
@@ -927,7 +927,8 @@ void tools::getTargetFeatures(const Driver &D, const
llvm::Triple &Triple,
for (auto Feature : unifyTargetFeatures(Features)) {
CmdArgs.push_back(IsAux ? "-aux-target-feature" : "-target-feature");
- CmdArgs.push_back(Feature.data());
+ // Feature strings may not be null-terminated.
----------------
tommat01 wrote:
I would not expect non-null-terminated strings here, I think it makes the
interface less safe/more susceptible to user errors.
https://github.com/llvm/llvm-project/pull/206937
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits