================
@@ -2842,24 +2882,12 @@ void CodeGenFunction::EmitVTablePtrCheck(const 
CXXRecordDecl *RD,
       !CGM.HasHiddenLTOVisibility(RD))
     return;
 
-  SanitizerKind::SanitizerOrdinal M;
-  llvm::SanitizerStatKind SSK;
+  auto [M, SSK] = ParseCFITypeCheckKind(TCK);
   switch (TCK) {
----------------
fmayer wrote:

then make that explicit rather than having this very long switch:

```
if (TCK == CFITCK_ICall) blah
```

but also unreachable is not abort, but triggers UB.

https://github.com/llvm/llvm-project/pull/139809
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to