diff options
Diffstat (limited to 'src/core/lib/gprpp/manual_constructor.h')
-rw-r--r-- | src/core/lib/gprpp/manual_constructor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/gprpp/manual_constructor.h b/src/core/lib/gprpp/manual_constructor.h index a177048605..7f827ca8b7 100644 --- a/src/core/lib/gprpp/manual_constructor.h +++ b/src/core/lib/gprpp/manual_constructor.h @@ -156,7 +156,7 @@ class PolymorphicManualConstructor { static_assert( manual_ctor_impl::is_one_of<DerivedType, DerivedTypes...>::value, "DerivedType must be one of the predeclared DerivedTypes"); - GPR_ASSERT(reinterpret_cast<BaseType*>(static_cast<DerivedType*>(p)) == p); + GPR_ASSERT(static_cast<BaseType*>(p) == p); } typename std::aligned_storage< |