[clang] [cfi] Enable -fsanitize-annotate-debug-info functionality for CFI checks (PR #139809)

Thurston Dang via cfe-commits cfe-commits at lists.llvm.org
Thu May 15 14:15:01 PDT 2025


================
@@ -2779,13 +2779,47 @@ void CodeGenFunction::EmitTypeMetadataCodeForVCall(const CXXRecordDecl *RD,
   }
 }
 
+std::pair<SanitizerKind::SanitizerOrdinal, llvm::SanitizerStatKind>
+CodeGenFunction::ParseCFITypeCheckKind(CFITypeCheckKind TCK) {
+  SanitizerKind::SanitizerOrdinal M;
+  llvm::SanitizerStatKind SSK;
+
+  switch (TCK) {
+  case CFITCK_VCall:
+    M = SanitizerKind::SO_CFIVCall;
----------------
thurstond wrote:

Thanks for the review! I refactored this function into https://github.com/llvm/llvm-project/pull/140117. I'll make the change there.

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


More information about the cfe-commits mailing list