[flang-commits] [flang] ca2ec4b - [flang][hlfir][NFC] Make BOZ lowering a TODO.

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Wed May 24 16:35:22 PDT 2023


Author: Slava Zakharin
Date: 2023-05-24T16:34:56-07:00
New Revision: ca2ec4b720a39c18986f6cc1556b2ec1b9ffcc17

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

LOG: [flang][hlfir][NFC] Make BOZ lowering a TODO.

This change just turns the unhandled BOZ fatal error into TODO
like in non-HLFIR path.

Added: 
    

Modified: 
    flang/lib/Lower/ConvertExprToHLFIR.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/ConvertExprToHLFIR.cpp b/flang/lib/Lower/ConvertExprToHLFIR.cpp
index 9522351f214a..1a7e3accb200 100644
--- a/flang/lib/Lower/ConvertExprToHLFIR.cpp
+++ b/flang/lib/Lower/ConvertExprToHLFIR.cpp
@@ -1408,7 +1408,7 @@ class HlfirBuilder {
 private:
   hlfir::EntityWithAttributes
   gen(const Fortran::evaluate::BOZLiteralConstant &expr) {
-    fir::emitFatalError(loc, "BOZ literal must be replaced by semantics");
+    TODO(getLoc(), "BOZ");
   }
 
   hlfir::EntityWithAttributes gen(const Fortran::evaluate::NullPointer &expr) {


        


More information about the flang-commits mailing list