Skip to content

Commit

Permalink
Fix clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
leewei05 committed Jul 5, 2024
1 parent 015682e commit d5d826b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/llvm/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
using namespace util;

bool LLVMIRBuilderHelper::HasTerminator(llvm::BasicBlock* bb) {
for (auto it = bb->begin(); it != bb->end(); ++it) {
if (it->isTerminator()) {
for (auto& it : *bb) {
if (it.isTerminator()) {
return true;
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/llvm_ir_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#include <llvm/ADT/Twine.h>
#include <llvm/IR/Argument.h>
#include <llvm/IR/BasicBlock.h>
#include <llvm/IR/Constant.h>
#include <llvm/IR/Constants.h>
#include <llvm/IR/DerivedTypes.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/GlobalValue.h>
#include <llvm/IR/GlobalVariable.h>
Expand All @@ -20,11 +18,9 @@
#include <llvm/IR/Value.h>
#include <llvm/Support/Casting.h>

#include <algorithm>
#include <cassert>
#include <cstddef>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
#include <utility>
Expand Down

0 comments on commit d5d826b

Please sign in to comment.