forked from OSchip/llvm-project
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:
parent
39a907b1c2
commit
b49fee0b41
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue