================
@@ -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.
----------------
aengelke wrote:

Yes, it is a user error to assume that a StringRef is null-terminated, which 
quite often is not the case..

https://github.com/llvm/llvm-project/pull/206937
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to