Skip to content

Commit 10e0377

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a89bcdc commit 10e0377

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

include/phasar/Utils/IO.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ namespace psr {
2727

2828
std::string readTextFile(const std::filesystem::path &Path);
2929

30-
std::unique_ptr
31-
<llvm::MemoryBuffer> readFile(const std::filesystem::path &Path);
30+
std::unique_ptr<llvm::MemoryBuffer> readFile(const std::filesystem::path &Path);
3231
std::unique_ptr<llvm::MemoryBuffer> readFile(const llvm::Twine &Path);
3332

3433
void writeTextFile(const std::filesystem::path &Path, llvm::StringRef Content);

lib/Utils/LLVMShorthands.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ bool isFunctionPointer(const llvm::Value *V) noexcept {
5757
}
5858

5959
bool isAllocaInstOrHeapAllocaFunction(const llvm::Value *V) noexcept {
60-
if (V)
61-
{
60+
if (V) {
6261
if (llvm::isa<llvm::AllocaInst>(V)) {
6362
return true;
6463
}
@@ -458,7 +457,8 @@ llvm::StringRef getVarAnnotationIntrinsicName(const llvm::CallInst *CallInst) {
458457
return Data->getAsCString();
459458
}
460459

461-
llvm::ModuleSlotTracker &ModulesToSlotTracker::getSlotTrackerForModule(const llvm::Module *M) {
460+
llvm::ModuleSlotTracker &
461+
ModulesToSlotTracker::getSlotTrackerForModule(const llvm::Module *M) {
462462
auto &ret = MToST[M];
463463
if (M == nullptr && ret == nullptr) {
464464
ret = std::make_unique<llvm::ModuleSlotTracker>(M);

0 commit comments

Comments
 (0)