[clang] [RISCV] Minor improvements/cleanup to target attribute handling. NFC (PR #73851)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 12:26:29 PST 2023


================
@@ -265,11 +264,11 @@ resolveTargetAttrOverride(const std::vector<std::string> &FeaturesVec,
   if (I == FeaturesVec.end())
     return FeaturesVec;
 
-  const std::vector<std::string> FeaturesNeedOverride(FeaturesVec.begin(), I);
+  ArrayRef<std::string> FeaturesNeedOverride(&*FeaturesVec.begin(), &*I);
----------------
topperc wrote:

The `&*` are here to convert from the std::vector pointer wrappers to raw pointers.

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


More information about the cfe-commits mailing list