[Lldb-commits] [PATCH] D136209: [LLDB][NativePDB] Fix parameter size for member functions LF_MFUNCTION

Zequan Wu via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 20 11:41:31 PDT 2022


zequanwu added a comment.

In D136209#3866933 <https://reviews.llvm.org/D136209#3866933>, @rnk wrote:

> Right, so `cantFail` must be an assertions-only check. That's not great.

With assertion enabled, lldb still silently deserialize member functions as non-member functions. My guess is that `TypeDeserializer::deserializeAs` doesn't return error in this case since `sizeof(MemberFunctionRecord)` > `sizeof(ProcedureRecord)`. We may need additional checking in TypeDeserializer::deserializeAs to verify that we are deserializing the correct type.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136209/new/

https://reviews.llvm.org/D136209



More information about the lldb-commits mailing list