Thread safety: move the inline function back into a namespace

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.

llvm-svn: 205935
This commit is contained in:
Reid Kleckner 2014-04-09 22:17:06 +00:00
parent 39a907b1c2
commit b49fee0b41
1 changed files with 3 additions and 3 deletions

View File

@ -264,12 +264,12 @@ private:
// 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;