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

We could consider stripping whitespace but it's probably not necessary for a 
WebKit specific checker since we would never add random whitespace around 
`brk`. Having said that, in long term, a better solution would be to provide a 
way to annotate that a function causes the program to terminate.

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

Reply via email to