Unverified Commit d39c7ef6 authored by Feng Xiao's avatar Feng Xiao Committed by GitHub

Merge pull request #5033 from xfxyjwf/up

Fix issues discovered in up-integration.
parents f2a326d3 fa11dea0
......@@ -1160,7 +1160,7 @@ const T* DynamicCastToGenerated(const Message* from) {
(void)unused;
#ifdef GOOGLE_PROTOBUF_NO_RTTI
bool ok = &T::default_instance()->GetReflection() == from->GetReflection();
bool ok = T::default_instance().GetReflection() == from->GetReflection();
return ok ? down_cast<const T*>(from) : nullptr;
#else
return dynamic_cast<const T*>(from);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment