[flang-commits] [flang] 135d5d4 - [Flang][NFC] Convert static to static inline for a function

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Tue Dec 14 05:56:53 PST 2021


Author: Kiran Chandramohan
Date: 2021-12-14T13:49:58Z
New Revision: 135d5d4a6d37f30173c1b9ea85a3a969c364b241

URL: https://github.com/llvm/llvm-project/commit/135d5d4a6d37f30173c1b9ea85a3a969c364b241
DIFF: https://github.com/llvm/llvm-project/commit/135d5d4a6d37f30173c1b9ea85a3a969c364b241.diff

LOG: [Flang][NFC] Convert static to static inline for a function

Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D115619

Added: 
    

Modified: 
    flang/lib/Optimizer/CodeGen/CodeGen.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/CodeGen/CodeGen.cpp b/flang/lib/Optimizer/CodeGen/CodeGen.cpp
index cb9576855d0fb..970cfa6397847 100644
--- a/flang/lib/Optimizer/CodeGen/CodeGen.cpp
+++ b/flang/lib/Optimizer/CodeGen/CodeGen.cpp
@@ -38,7 +38,7 @@ static constexpr unsigned defaultAlign = 8;
 static constexpr unsigned kAttrPointer = CFI_attribute_pointer;
 static constexpr unsigned kAttrAllocatable = CFI_attribute_allocatable;
 
-static mlir::Type getVoidPtrType(mlir::MLIRContext *context) {
+static inline mlir::Type getVoidPtrType(mlir::MLIRContext *context) {
   return mlir::LLVM::LLVMPointerType::get(mlir::IntegerType::get(context, 8));
 }
 


        


More information about the flang-commits mailing list