@@ -1674,7 +1674,7 @@ static const IntrinsicInterface intrinsicSubroutine[]{
1674
1674
{" to" , SameIntOrUnsigned, Rank::elemental, Optionality::required,
1675
1675
common::Intent::Out},
1676
1676
{" topos" , AnyInt}},
1677
- {}, Rank::elemental, IntrinsicClass::elementalSubroutine}, // elemental
1677
+ {}, Rank::elemental, IntrinsicClass::elementalSubroutine},
1678
1678
{" random_init" ,
1679
1679
{{" repeatable" , AnyLogical, Rank::scalar},
1680
1680
{" image_distinct" , AnyLogical, Rank::scalar}},
@@ -2903,7 +2903,7 @@ bool IntrinsicProcTable::Implementation::IsDualIntrinsic(
2903
2903
// Collection for some intrinsics with function and subroutine form,
2904
2904
// in order to pass the semantic check.
2905
2905
static const std::string dualIntrinsic[]{{" chdir" }, {" etime" }, {" fseek" },
2906
- {" ftell" }, {" getcwd" }, {" hostnm" }, {" putenv" s }, {" rename" }, {" second" },
2906
+ {" ftell" }, {" getcwd" }, {" hostnm" }, {" putenv" }, {" rename" }, {" second" },
2907
2907
{" system" }, {" unlink" }};
2908
2908
return llvm::is_contained (dualIntrinsic, name);
2909
2909
}
@@ -3766,6 +3766,9 @@ bool IntrinsicProcTable::IsIntrinsicFunction(const std::string &name) const {
3766
3766
bool IntrinsicProcTable::IsIntrinsicSubroutine (const std::string &name) const {
3767
3767
return DEREF (impl_.get ()).IsIntrinsicSubroutine (name);
3768
3768
}
3769
+ bool IntrinsicProcTable::IsDualIntrinsic (const std::string &name) const {
3770
+ return DEREF (impl_.get ()).IsDualIntrinsic (name);
3771
+ }
3769
3772
3770
3773
IntrinsicClass IntrinsicProcTable::GetIntrinsicClass (
3771
3774
const std::string &name) const {
0 commit comments