[flang-commits] [flang] fe9b587 - [flang] Delete unused variable

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Aug 29 14:36:10 PDT 2023


Author: Peter Klausler
Date: 2023-08-29T14:35:57-07:00
New Revision: fe9b58768866e4d3fa05727aec6d0dfb6c0a8671

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

LOG: [flang] Delete unused variable

A declaration for an unused variable was recently introduced
(by me) and is producing a warning in builds with the latest
clang.  Delete it.

Added: 
    

Modified: 
    flang/lib/Evaluate/fold-integer.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Evaluate/fold-integer.cpp b/flang/lib/Evaluate/fold-integer.cpp
index 27770ba5de8889..fe38c81d976822 100644
--- a/flang/lib/Evaluate/fold-integer.cpp
+++ b/flang/lib/Evaluate/fold-integer.cpp
@@ -848,7 +848,6 @@ Expr<Type<TypeCategory::Integer, KIND>> FoldIntrinsicFunction(
     // have folded the argument; in the case of TypeParamInquiry,
     // try to get the type of the parameter itself.
     if (const auto *expr{args[0] ? args[0]->UnwrapExpr() : nullptr}) {
-      std::optional<DynamicType> dyType;
       if (const auto *inquiry{UnwrapExpr<TypeParamInquiry>(*expr)}) {
         if (const auto *typeSpec{inquiry->parameter().GetType()}) {
           if (const auto *intrinType{typeSpec->AsIntrinsic()}) {


        


More information about the flang-commits mailing list