Skip to content

Commit

Permalink
[NFC] Add const qualifier to isEmpty()
Browse files Browse the repository at this point in the history
Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D91587
  • Loading branch information
TaWeiTu committed Nov 17, 2020
1 parent 1da60f1 commit c2e22fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/IR/PassManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ class PassManager : public PassInfoMixin<
}

/// Returns if the pass manager contains any passes.
bool isEmpty() { return Passes.empty(); }
bool isEmpty() const { return Passes.empty(); }

static bool isRequired() { return true; }

Expand Down

0 comments on commit c2e22fd

Please sign in to comment.