diff options
| author | 2019-01-27 16:42:12 +0000 | |
|---|---|---|
| committer | 2019-01-27 16:42:12 +0000 | |
| commit | b773203fb58f3ef282fb69c832d8710cab5bc82d (patch) | |
| tree | e75913f147570fbd75169647b144df85b88a038c /gnu/llvm/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp | |
| parent | tweak errno in previous (diff) | |
| download | wireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.tar.xz wireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.zip | |
Import LLVM 7.0.1 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/llvm/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp b/gnu/llvm/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp index 7f08760e3d4..74fe663e981 100644 --- a/gnu/llvm/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp +++ b/gnu/llvm/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp @@ -16,10 +16,8 @@ public: } // end anonymous namespace void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const { - const ProgramStateRef state = C.getState(); - const LocationContext *LC = C.getLocationContext(); const Expr *Callee = CE->getCallee(); - const FunctionDecl *FD = state->getSVal(Callee, LC).getAsFunctionDecl(); + const FunctionDecl *FD = C.getSVal(Callee).getAsFunctionDecl(); if (!FD) return; |
