[flang-commits] [flang] 99961b4 - [fir] Declare test function inline

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Dec 2 05:19:01 PST 2021


Author: Valentin Clement
Date: 2021-12-02T14:18:43+01:00
New Revision: 99961b4f1c73f135e5022d7c09dca05eb867cf7b

URL: https://github.com/llvm/llvm-project/commit/99961b4f1c73f135e5022d7c09dca05eb867cf7b
DIFF: https://github.com/llvm/llvm-project/commit/99961b4f1c73f135e5022d7c09dca05eb867cf7b.diff

LOG: [fir] Declare test function inline

Declare functions checkCallOp and checkCallOpFromResultBox inline due to buildbot failure flang-aarch64-latest-clang

Added: 
    

Modified: 
    flang/unittests/Optimizer/Builder/Runtime/RuntimeCallTestBase.h

Removed: 
    


################################################################################
diff  --git a/flang/unittests/Optimizer/Builder/Runtime/RuntimeCallTestBase.h b/flang/unittests/Optimizer/Builder/Runtime/RuntimeCallTestBase.h
index 728313ded8dfe..bbba69115a33a 100644
--- a/flang/unittests/Optimizer/Builder/Runtime/RuntimeCallTestBase.h
+++ b/flang/unittests/Optimizer/Builder/Runtime/RuntimeCallTestBase.h
@@ -77,7 +77,7 @@ struct RuntimeCallTest : public testing::Test {
 /// \p fctName and the number of arguments is equal to \p nbArgs.
 /// Most runtime calls have two additional location arguments added. These are
 /// added in this check when \p addLocArgs is true.
-static void checkCallOp(mlir::Operation *op, llvm::StringRef fctName,
+static inline void checkCallOp(mlir::Operation *op, llvm::StringRef fctName,
     unsigned nbArgs, bool addLocArgs = true) {
   EXPECT_TRUE(mlir::isa<fir::CallOp>(*op));
   auto callOp = mlir::dyn_cast<fir::CallOp>(*op);
@@ -107,7 +107,7 @@ static void checkCallOp(mlir::Operation *op, llvm::StringRef fctName,
 /// %arg = fir.convert %result : (i32) -> i16
 /// %0 = fir.call @foo(%arg) : (i16) -> i1
 /// ```
-static void checkCallOpFromResultBox(mlir::Value result,
+static inline void checkCallOpFromResultBox(mlir::Value result,
     llvm::StringRef fctName, unsigned nbArgs, bool addLocArgs = true) {
   EXPECT_TRUE(result.hasOneUse());
   const auto &u = result.user_begin();


        


More information about the flang-commits mailing list