Make helper function static. NFC.

llvm-svn: 235253
This commit is contained in:
Benjamin Kramer 2015-04-18 10:00:10 +00:00
parent adfd1b730c
commit 5df7c1a4eb
1 changed files with 3 additions and 3 deletions

View File

@ -1469,9 +1469,9 @@ static void EmitOMPAtomicWriteExpr(CodeGenFunction &CGF, bool IsSeqCst,
CGF.CGM.getOpenMPRuntime().emitFlush(CGF, llvm::None, Loc);
}
bool emitOMPAtomicRMW(CodeGenFunction &CGF, LValue X, RValue Update,
BinaryOperatorKind BO, llvm::AtomicOrdering AO,
bool IsXLHSInRHSPart) {
static bool emitOMPAtomicRMW(CodeGenFunction &CGF, LValue X, RValue Update,
BinaryOperatorKind BO, llvm::AtomicOrdering AO,
bool IsXLHSInRHSPart) {
auto &Context = CGF.CGM.getContext();
// Allow atomicrmw only if 'x' and 'update' are integer values, lvalue for 'x'
// expression is simple and atomic is allowed for the given type for the