[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

Nikolas Klauser via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 26 00:01:31 PDT 2025


================
@@ -349,7 +350,12 @@ class Triple {
   /// triple fields unknown.
   Triple() = default;
 
+  LLVM_ABI explicit Triple(std::string &&Str);
----------------
philnik777 wrote:

That is indeed the case. Technically there is an additional `move`, OTOH that pretty much never matters, since the optimizer is almost always perfectly capable of removing that.

https://github.com/llvm/llvm-project/pull/145685


More information about the cfe-commits mailing list