[PATCH] D78725: [flang] Remove unused variable

Tim Keith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 09:43:32 PDT 2020


tskeith created this revision.
tskeith added a reviewer: sscalpone.
tskeith added projects: Flang, LLVM.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: DavidTruby.
Herald added a subscriber: llvm-commits.
sscalpone accepted this revision.
This revision is now accepted and ready to land.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78725

Files:
  flang/lib/Semantics/type.cpp


Index: flang/lib/Semantics/type.cpp
===================================================================
--- flang/lib/Semantics/type.cpp
+++ flang/lib/Semantics/type.cpp
@@ -338,7 +338,7 @@
     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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78725.259599.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200423/5e11a3f4/attachment.bin>


More information about the llvm-commits mailing list