[PATCH] D119705: [flang] Fix `LoweringBridge::validModule`

Andrzej Warzynski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 16 02:57:50 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGdda3c14fd7db: [flang] Fix `LoweringBridge::validModule` (authored by awarzynski).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119705/new/

https://reviews.llvm.org/D119705

Files:
  flang/include/flang/Lower/Bridge.h


Index: flang/include/flang/Lower/Bridge.h
===================================================================
--- flang/include/flang/Lower/Bridge.h
+++ flang/include/flang/Lower/Bridge.h
@@ -84,7 +84,7 @@
   /// Create a folding context. Careful: this is very expensive.
   Fortran::evaluate::FoldingContext createFoldingContext() const;
 
-  bool validModule() { return getModule(); }
+  bool validModule() { return (module != nullptr); }
 
   //===--------------------------------------------------------------------===//
   // Perform the creation of an mlir::ModuleOp


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119705.409188.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220216/ee320dd2/attachment.bin>


More information about the llvm-commits mailing list