From: Benjamin Kramer Date: Sat, 18 Apr 2015 10:00:10 +0000 (+0000) Subject: Make helper function static. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3750ce3e5bc4b1a8f3ab7a6c7b07d8f8e1f29950;p=clang Make helper function static. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235253 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGStmtOpenMP.cpp b/lib/CodeGen/CGStmtOpenMP.cpp index aa53756009..1541ba687c 100644 --- a/lib/CodeGen/CGStmtOpenMP.cpp +++ b/lib/CodeGen/CGStmtOpenMP.cpp @@ -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