Skip to content

Commit 0ab6c9d

Browse files
committed
Fix compiler crash at clang-15
1 parent 8084222 commit 0ab6c9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bindings/java/JniUtils.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,8 @@ namespace jni
924924
{
925925
return CppType{ env, v };
926926
}
927-
if (!env->IsInstanceOf(v, JIteratorBase::jClass)) throw std::runtime_error{ StringConcat_v<svNotInstanceOf, typeStr, svNullTerm>.data()};
927+
// The following line crashes clang compiler. I don't know why, but it's not necessary. So I commented it out.
928+
if (!env->IsInstanceOf(v, JIteratorBase::jClass)) throw std::runtime_error{ ""/*StringConcat_v<svNotInstanceOf, typeStr, svNullTerm>.data()*/};
928929
return CppType{ env, v };
929930
}
930931
};

0 commit comments

Comments
 (0)