[flang-commits] [flang] af4ddd5 - [flang] Update tco after 0dc66b76fe4c

Diana Picus via flang-commits flang-commits at lists.llvm.org
Mon Mar 7 04:57:53 PST 2022


Author: Diana Picus
Date: 2022-03-07T12:55:43Z
New Revision: af4ddd516f2633a4c2281c5e51e5ab5e89d2dce0

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

LOG: [flang] Update tco after 0dc66b76fe4c

Minor fix to appease the buildbots.

Added: 
    

Modified: 
    flang/tools/tco/tco.cpp

Removed: 
    


################################################################################
diff  --git a/flang/tools/tco/tco.cpp b/flang/tools/tco/tco.cpp
index 51909c1fea7a0..e35325c889552 100644
--- a/flang/tools/tco/tco.cpp
+++ b/flang/tools/tco/tco.cpp
@@ -79,7 +79,7 @@ compileFIR(const mlir::PassPipelineCLParser &passPipeline) {
   mlir::MLIRContext context(registry);
   fir::support::loadDialects(context);
   fir::support::registerLLVMTranslation(context);
-  auto owningRef = mlir::parseSourceFile(sourceMgr, &context);
+  auto owningRef = mlir::parseSourceFile<mlir::ModuleOp>(sourceMgr, &context);
 
   if (!owningRef) {
     errs() << "Error can't load file " << inputFilename << '\n';


        


More information about the flang-commits mailing list