[flang-commits] [flang] 4ced7a4 - [flang] Remove unused variable

Tim Keith via flang-commits flang-commits at lists.llvm.org
Thu Apr 23 09:23:08 PDT 2020


Author: Tim Keith
Date: 2020-04-23T09:22:14-07:00
New Revision: 4ced7a48e68a89257ee3c58a460d1bcdbf1e9447

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

LOG: [flang] Remove unused variable

Reviewers: sscalpone, jdoerfert, DavidTruby

Reviewed By: sscalpone

Subscribers: llvm-commits

Tags: #flang, #llvm

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

Added: 
    

Modified: 
    flang/lib/Semantics/type.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Semantics/type.cpp b/flang/lib/Semantics/type.cpp
index 2b7de8f451ea..3a98dda7916d 100644
--- a/flang/lib/Semantics/type.cpp
+++ b/flang/lib/Semantics/type.cpp
@@ -338,7 +338,7 @@ const DeclTypeSpec *InstantiateHelper::InstantiateType(const Symbol &symbol) {
     return &FindOrInstantiateDerivedType(scope_,
         CreateDerivedTypeSpec(*spec, symbol.test(Symbol::Flag::ParentComp)),
         context_, type->category());
-  } else if (const IntrinsicTypeSpec * intrinsic{type->AsIntrinsic()}) {
+  } else if (type->AsIntrinsic()) {
     return &InstantiateIntrinsicType(*type);
   } else if (type->category() == DeclTypeSpec::ClassStar) {
     return type;


        


More information about the flang-commits mailing list