[llvm] 0e326d0 - [CodeGen] Constify changeTypeToInteger
Itay Bookstein via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 23:30:58 PDT 2023
Author: Itay Bookstein
Date: 2023-07-18T00:41:43+03:00
New Revision: 0e326d04acfc3d02fb976f9029937221cbb7f1bf
URL: https://github.com/llvm/llvm-project/commit/0e326d04acfc3d02fb976f9029937221cbb7f1bf
DIFF: https://github.com/llvm/llvm-project/commit/0e326d04acfc3d02fb976f9029937221cbb7f1bf.diff
LOG: [CodeGen] Constify changeTypeToInteger
Surrounding methods are const, seems to be an oversight.
Signed-off-by: Itay Bookstein <itay.bookstein at nextsilicon.com>
Reviewed By: bogner
Differential Revision: https://reviews.llvm.org/D155505
Added:
Modified:
llvm/include/llvm/CodeGen/ValueTypes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/ValueTypes.h b/llvm/include/llvm/CodeGen/ValueTypes.h
index 747cce781cf7a6..c4cd332d101cd7 100644
--- a/llvm/include/llvm/CodeGen/ValueTypes.h
+++ b/llvm/include/llvm/CodeGen/ValueTypes.h
@@ -110,7 +110,7 @@ namespace llvm {
/// 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();
More information about the llvm-commits
mailing list