Fix a comment to be accurate.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 20 Oct 2006 07:24:55 +0000 (07:24 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 20 Oct 2006 07:24:55 +0000 (07:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31064 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index bc76248c1564bd406aebdd3c8abda7fd0209b75a..8c244356d413edc12b8ca3bf609bf9774ea249dc 100644 (file)
@@ -176,10 +176,10 @@ public:
     return Val == V;
   }
 
-  /// Return a ConstantInt with the specified value for the specified type. 
-  /// Overloads for ll the integer types are provided to ensure that implicit
-  /// conversions don't bite us and to get around compiler errors where the 
-  /// compiler can't find a suitable overload for a given integer value.
+  /// Return a ConstantInt with the specified value for the specified type. The
+  /// value V will be canonicalized to a uint64_t but accessing it with either
+  /// getSExtValue() or getZExtValue() (ConstantIntegral) will yield the correct
+  /// sized/signed value for the type Ty.
   /// @brief Get a ConstantInt for a specific value.
   static ConstantInt *get(const Type *Ty, int64_t V);