[compiler-rt] [compiler-rt][ubsan][nfc-ish] Fix a type conversion bug (PR #100665)

Alan Zhao via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 16:42:00 PDT 2024


================
@@ -207,7 +207,8 @@ struct VtablePrefix {
   std::type_info *TypeInfo;
 };
 VtablePrefix *getVtablePrefix(void *Vtable) {
-  Vtable = ptrauth_strip(Vtable, ptrauth_key_cxx_vtable_pointer);
+  Vtable = reinterpret_cast<void *>(
----------------
alanzhao1 wrote:

Ended up removing the `reintepret_cast` here.

https://github.com/llvm/llvm-project/pull/100665


More information about the llvm-commits mailing list