[PATCH] D91587: [NFC] Add const qualifier to isEmpty()

Ta-Wei Tu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 22:40:22 PST 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc2e22fd16453: [NFC] Add const qualifier to isEmpty() (authored by TaWeiTu).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91587/new/

https://reviews.llvm.org/D91587

Files:
  llvm/include/llvm/IR/PassManager.h


Index: llvm/include/llvm/IR/PassManager.h
===================================================================
--- llvm/include/llvm/IR/PassManager.h
+++ 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; }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91587.305658.patch
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201117/f51d7299/attachment.bin>


More information about the llvm-commits mailing list