[clang] [WebKit checkers] Treat asm brk as trivial (PR #155046)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 9 02:05:27 PDT 2025


================
@@ -666,6 +666,10 @@ class TrivialFunctionAnalysisVisitor
     return IsFunctionTrivial(Callee);
   }
 
+  bool VisitGCCAsmStmt(const GCCAsmStmt *AS) {
+    return AS->getAsmString() == "brk #0xc471";
----------------
rniwa wrote:

It could be other kinds of brk as long as it triggers a crash.

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


More information about the cfe-commits mailing list