Moving it into a struct makes things work because it implicitly marks
the function as inline. The struct is unnecessary if you explicitly
mark the function inline.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205935
91177308-0d34-0410-b5e6-
96231b3b80d8
// Contains various helper functions for SExprs.
-struct ThreadSafetyTIL {
- static bool isTrivial(SExpr *E) {
+namespace ThreadSafetyTIL {
+ inline bool isTrivial(SExpr *E) {
unsigned Op = E->opcode();
return Op == COP_Variable || Op == COP_Literal || Op == COP_LiteralPtr;
}
-};
+}
class Function;
class SFunction;