@@ -35,7 +35,7 @@ using llvm::formatv;
35
35
// / on each element doesn't return a string.
36
36
template <typename ForwardIterator, typename UnaryFunctor,
37
37
typename NullaryFunctor>
38
- inline LogicalResult
38
+ static inline LogicalResult
39
39
interleaveWithError (ForwardIterator begin, ForwardIterator end,
40
40
UnaryFunctor eachFn, NullaryFunctor betweenFn) {
41
41
if (begin == end)
@@ -52,16 +52,16 @@ interleaveWithError(ForwardIterator begin, ForwardIterator end,
52
52
}
53
53
54
54
template <typename Container, typename UnaryFunctor, typename NullaryFunctor>
55
- inline LogicalResult interleaveWithError (const Container &c,
56
- UnaryFunctor eachFn,
57
- NullaryFunctor betweenFn) {
55
+ static inline LogicalResult interleaveWithError (const Container &c,
56
+ UnaryFunctor eachFn,
57
+ NullaryFunctor betweenFn) {
58
58
return interleaveWithError (c.begin (), c.end (), eachFn, betweenFn);
59
59
}
60
60
61
61
template <typename Container, typename UnaryFunctor>
62
- inline LogicalResult interleaveCommaWithError (const Container &c,
63
- raw_ostream &os,
64
- UnaryFunctor eachFn) {
62
+ static inline LogicalResult interleaveCommaWithError (const Container &c,
63
+ raw_ostream &os,
64
+ UnaryFunctor eachFn) {
65
65
return interleaveWithError (c.begin (), c.end (), eachFn, [&]() { os << " , " ; });
66
66
}
67
67
@@ -1787,7 +1787,7 @@ LogicalResult CppEmitter::emitType(Location loc, Type type) {
1787
1787
case 16 : {
1788
1788
if (llvm::isa<Float16Type>(type))
1789
1789
return (os << " _Float16" ), success ();
1790
- else if (llvm::isa<BFloat16Type>(type))
1790
+ if (llvm::isa<BFloat16Type>(type))
1791
1791
return (os << " __bf16" ), success ();
1792
1792
else
1793
1793
return emitError (loc, " cannot emit float type " ) << type;
0 commit comments