Mark getRawBits const.
authorPreston Gurd <preston.gurd@intel.com>
Thu, 14 Feb 2013 22:49:29 +0000 (22:49 +0000)
committerPreston Gurd <preston.gurd@intel.com>
Thu, 14 Feb 2013 22:49:29 +0000 (22:49 +0000)
Patch by Tyler Nowicki.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175218 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/ValueTypes.h

index f8a6503f237e587a92c378d1ad211505a8a3ff77..ec48b67b993c2c552b0b3e546d40d5744c265f9f 100644 (file)
@@ -827,7 +827,7 @@ namespace llvm {
     /// types are returned as Other, otherwise they are invalid.
     static EVT getEVT(Type *Ty, bool HandleUnknown = false);
 
-    intptr_t getRawBits() {
+    intptr_t getRawBits() const {
       if (isSimple())
         return V.SimpleTy;
       else