[clang] 076ec9f - Fix build failure on certain bots
Kadir Cetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 24 02:39:26 PST 2023
Author: Kadir Cetinkaya
Date: 2023-11-24T11:39:16+01:00
New Revision: 076ec9f5f5bf03983f43f703e3f9d4600bad9653
URL: https://github.com/llvm/llvm-project/commit/076ec9f5f5bf03983f43f703e3f9d4600bad9653
DIFF: https://github.com/llvm/llvm-project/commit/076ec9f5f5bf03983f43f703e3f9d4600bad9653.diff
LOG: Fix build failure on certain bots
Added:
Modified:
clang/lib/Basic/Targets/RISCV.cpp
Removed:
################################################################################
diff --git a/clang/lib/Basic/Targets/RISCV.cpp b/clang/lib/Basic/Targets/RISCV.cpp
index 0ecc35f3a332a9b..d1d9cc1c770e361 100644
--- a/clang/lib/Basic/Targets/RISCV.cpp
+++ b/clang/lib/Basic/Targets/RISCV.cpp
@@ -269,7 +269,7 @@ resolveTargetAttrOverride(const std::vector<std::string> &FeaturesVec,
std::vector<std::string> NonISAExtFeature =
collectNonISAExtFeature(FeaturesNeedOverride, XLen);
- auto ResolvedFeature = std::vector(++I, FeaturesVec.end());
+ auto ResolvedFeature = std::vector<std::string>(++I, FeaturesVec.end());
ResolvedFeature.insert(ResolvedFeature.end(), NonISAExtFeature.begin(),
NonISAExtFeature.end());
More information about the cfe-commits
mailing list