Skip to content

Commit

Permalink
[flang] address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
klausler committed Jul 19, 2019
1 parent 834c4d6 commit 645d987
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions flang/lib/evaluate/intrinsics.cc
Expand Up @@ -1203,13 +1203,8 @@ std::optional<SpecificCall> IntrinsicInterface::Match(
break;
case KindCode::operand:
CHECK(operandArg != nullptr);
if (std::optional<DynamicType> aType{operandArg->GetType()}) {
if (result.categorySet.test(aType->category())) {
resultType = *aType;
} else {
resultType = DynamicType{*category, aType->kind()};
}
}
resultType = operandArg->GetType();
CHECK(!resultType || result.categorySet.test(resultType->category()));
break;
case KindCode::effectiveKind:
CHECK(kindDummyArg != nullptr);
Expand Down

0 comments on commit 645d987

Please sign in to comment.