]> granicus.if.org Git - clang/commitdiff
Make helper function static. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 18 Apr 2015 10:00:10 +0000 (10:00 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 18 Apr 2015 10:00:10 +0000 (10:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235253 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGStmtOpenMP.cpp

index aa537560098d5833dff45215da05d2a126b94f5f..1541ba687cfa1587a46f288f1eb45ec8bf9b5c1d 100644 (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