[all-commits] [llvm/llvm-project] abe1bb: [clang] MicrosoftCXXNameMangler::mangleObjCKindOfT...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Sat Feb 12 12:11:38 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: abe1bb763e3a7ce197f310afbff6112eb605136f
https://github.com/llvm/llvm-project/commit/abe1bb763e3a7ce197f310afbff6112eb605136f
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-02-12 (Sat, 12 Feb 2022)
Changed paths:
M clang/lib/AST/MicrosoftMangle.cpp
Log Message:
-----------
[clang] MicrosoftCXXNameMangler::mangleObjCKindOfType - use castAs<> instead of getAs<> to avoid dereference of nullptr
The pointer is referenced in the mangleType call, so assert the cast is correct instead of returning nullptr
More information about the All-commits
mailing list