diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-10-20 07:24:55 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-10-20 07:24:55 +0000 |
commit | a0098386741949065f099b940819201f73cd86c2 (patch) | |
tree | 90d8479ba29c902c97907512dfcc41c0a960ae41 | |
parent | b83eb6447ba155342598f0fabe1f08f5baa9164a (diff) |
Fix a comment to be accurate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31064 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Constants.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index bc76248c15..8c244356d4 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -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); |