diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-04-09 22:17:06 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-04-09 22:17:06 +0000 |
| commit | b49fee0b414ee2acfcd5e9cd1cf801af0ed1308f (patch) | |
| tree | c3894fddd73caf7c0cba9cf3f96362845bc38c28 | |
| parent | 39a907b1c223c7503b905834f658622f56080c64 (diff) | |
| download | bcm5719-llvm-b49fee0b414ee2acfcd5e9cd1cf801af0ed1308f.tar.gz bcm5719-llvm-b49fee0b414ee2acfcd5e9cd1cf801af0ed1308f.zip | |
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
| -rw-r--r-- | clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h b/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h index 05eb21ebafd..506adb104e7 100644 --- a/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h +++ b/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h @@ -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; |

