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.

llvm-svn: 175218

llvm/include/llvm/CodeGen/ValueTypes.h

index f8a6503..ec48b67 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