Skip to content

Commit b25e5ac

Browse files
committed
Changed SplitFPAccuracyVal to be a static function instead of a lambda.
1 parent e643027 commit b25e5ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,7 +2959,7 @@ static void EmitAccuracyDiag(const Driver &D, const JobAction &JA,
29592959
}
29602960
}
29612961

2962-
auto SplitFPAccuracyVal = [](StringRef Val) {
2962+
static SmallVector<StringRef, 8> SplitFPAccuracyVal(StringRef Val) {
29632963
SmallVector<StringRef, 8> ValuesArr;
29642964
SmallVector<StringRef, 8> FuncsArr;
29652965
Val.split(ValuesArr, ":");
@@ -2968,7 +2968,7 @@ auto SplitFPAccuracyVal = [](StringRef Val) {
29682968
x.split(FuncsArr, ",");
29692969
}
29702970
return FuncsArr;
2971-
};
2971+
}
29722972

29732973
static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
29742974
bool OFastEnabled, const ArgList &Args,

0 commit comments

Comments
 (0)