From 3750ce3e5bc4b1a8f3ab7a6c7b07d8f8e1f29950 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 18 Apr 2015 10:00:10 +0000 Subject: [PATCH] Make helper function static. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235253 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGStmtOpenMP.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.40.0