Skip to content

Commit

Permalink
Fix compiler crash at clang-15
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Jul 2, 2024
1 parent 8084222 commit 0ab6c9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/java/JniUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ namespace jni
{
return CppType{ env, v };
}
if (!env->IsInstanceOf(v, JIteratorBase::jClass)) throw std::runtime_error{ StringConcat_v<svNotInstanceOf, typeStr, svNullTerm>.data()};
// The following line crashes clang compiler. I don't know why, but it's not necessary. So I commented it out.
if (!env->IsInstanceOf(v, JIteratorBase::jClass)) throw std::runtime_error{ ""/*StringConcat_v<svNotInstanceOf, typeStr, svNullTerm>.data()*/};
return CppType{ env, v };
}
};
Expand Down

0 comments on commit 0ab6c9d

Please sign in to comment.