[all-commits] [llvm/llvm-project] 2614de: [clang] CGCXXABI::EmitLoadOfMemberFunctionPointer ...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Feb 17 05:19:01 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2614de82025bd9c04f8515747a611238c0ac4e05
https://github.com/llvm/llvm-project/commit/2614de82025bd9c04f8515747a611238c0ac4e05
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-02-17 (Thu, 17 Feb 2022)
Changed paths:
M clang/lib/CodeGen/CGCXXABI.cpp
Log Message:
-----------
[clang] CGCXXABI::EmitLoadOfMemberFunctionPointer - use castAs<> instead of getAs<> to avoid dereference of nullptr
The pointer is always dereferenced by arrangeCXXMethodType, so assert the cast is correct instead of returning nullptr
Commit: 57fc9798d7145626809b0e81af9154a755b383eb
https://github.com/llvm/llvm-project/commit/57fc9798d7145626809b0e81af9154a755b383eb
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-02-17 (Thu, 17 Feb 2022)
Changed paths:
M clang/lib/CodeGen/CGDebugInfo.cpp
Log Message:
-----------
[clang] CGDebugInfo::getOrCreateMethodType - use castAs<> instead of getAs<> to avoid dereference of nullptr
The pointer is always dereferenced, so assert the cast is correct instead of returning nullptr
Compare: https://github.com/llvm/llvm-project/compare/21ac47439218...57fc9798d714
More information about the All-commits
mailing list