[PATCH] D75432: [analyzer][NFC][MallocChecker] Convert many parameters into CallEvent

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 20 06:29:41 PDT 2020


balazske added inline comments.


================
Comment at: clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp:1194
-  if (!FD)
+  if (!Call.getOriginExpr())
     return;
 
----------------
This should be added to avoid later crash (probably not needed for every check kind?):
```
  const FunctionDecl *FD = C.getCalleeDecl(CE);
  if (!FD)
    return;
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75432/new/

https://reviews.llvm.org/D75432





More information about the cfe-commits mailing list