diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h --- a/llvm/include/llvm/IR/PassManager.h +++ b/llvm/include/llvm/IR/PassManager.h @@ -571,7 +571,7 @@ } /// Returns if the pass manager contains any passes. - bool isEmpty() { return Passes.empty(); } + bool isEmpty() const { return Passes.empty(); } static bool isRequired() { return true; }