[PATCH] D155505: [CodeGen] Constify changeTypeToInteger

Itay Bookstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 12:00:23 PDT 2023


nextsilicon-itay-bookstein created this revision.
nextsilicon-itay-bookstein added a reviewer: bogner.
Herald added a project: All.
nextsilicon-itay-bookstein requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Surrounding methods are const, seems to be an oversight.

Signed-off-by: Itay Bookstein <itay.bookstein at nextsilicon.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155505

Files:
  llvm/include/llvm/CodeGen/ValueTypes.h


Index: llvm/include/llvm/CodeGen/ValueTypes.h
===================================================================
--- llvm/include/llvm/CodeGen/ValueTypes.h
+++ llvm/include/llvm/CodeGen/ValueTypes.h
@@ -110,7 +110,7 @@
     /// Return the type converted to an equivalently sized integer or vector
     /// with integer element type. Similar to changeVectorElementTypeToInteger,
     /// but also handles scalars.
-    EVT changeTypeToInteger() {
+    EVT changeTypeToInteger() const {
       if (isVector())
         return changeVectorElementTypeToInteger();
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155505.541176.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230717/37b328c9/attachment.bin>


More information about the llvm-commits mailing list