Skip to content

Commit e33d633

Browse files
committed
Fix phasar_passes dependency to phasar_phasarllvm_utils
1 parent 9a1a2c2 commit e33d633

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Checks: '-*,
1515
-readability-function-cognitive-complexity,
1616
-readability-convert-member-functions-to-static,
1717
-readability-isolate-declaration,
18+
-readability-identifier-length,
1819
cppcoreguidelines-*,
1920
-cppcoreguidelines-avoid-non-const-global-variables,
2021
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,

lib/PhasarLLVM/Passes/GeneralStatisticsAnalysis.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
* Author: pdschbrt
1515
*/
1616

17-
#include <string>
17+
#include "phasar/PhasarLLVM/Passes/GeneralStatisticsAnalysis.h"
18+
#include "phasar/Utils/Logger.h"
19+
#include "phasar/Utils/PAMMMacros.h"
1820

1921
#include "llvm/Analysis/LoopInfo.h"
2022
#include "llvm/Demangle/Demangle.h"
@@ -25,10 +27,7 @@
2527
#include "llvm/Pass.h"
2628
#include "llvm/Support/raw_os_ostream.h"
2729

28-
#include "phasar/PhasarLLVM/Passes/GeneralStatisticsAnalysis.h"
29-
#include "phasar/PhasarLLVM/Utils/LLVMShorthands.h"
30-
#include "phasar/Utils/Logger.h"
31-
#include "phasar/Utils/PAMMMacros.h"
30+
#include <string>
3231

3332
using namespace std;
3433
using namespace psr;
@@ -107,8 +106,8 @@ GeneralStatisticsAnalysis::run(llvm::Module &M,
107106
const llvm::CallBase *CTor =
108107
llvm::cast<llvm::CallBase>(User);
109108
if (CTor->getCalledFunction() &&
110-
getNthFunctionArgument(CTor->getCalledFunction(), 0)
111-
->getType() == Cast->getDestTy()) {
109+
CTor->getCalledFunction()->getArg(0)->getType() ==
110+
Cast->getDestTy()) {
112111
Stats.AllocatedTypes.insert(
113112
Cast->getDestTy()->getPointerElementType());
114113
}

0 commit comments

Comments
 (0)