diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-02 22:03:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-02 22:03:27 +0000 |
commit | 5dfdc1c809bb23e5d918de3b81e08b85f572e4b9 (patch) | |
tree | d6b4600fc0d08852c21ff75c6f09cbe8ee780a3a /lib/VMCore/Function.cpp | |
parent | 3c6255c376127f9e79b8bab47a2fd585131e8fcd (diff) | |
download | external_llvm-5dfdc1c809bb23e5d918de3b81e08b85f572e4b9.zip external_llvm-5dfdc1c809bb23e5d918de3b81e08b85f572e4b9.tar.gz external_llvm-5dfdc1c809bb23e5d918de3b81e08b85f572e4b9.tar.bz2 |
Fix a build issue on cygwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index ca4792f..f3169e1 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -160,12 +160,9 @@ ParamAttrsList::areCompatible(const ParamAttrsList *A, const ParamAttrsList *B){ return true; } -void -ParamAttrsList::Profile(FoldingSetNodeID &ID) const { - for (unsigned i = 0; i < attrs.size(); ++i) { - uint32_t val = uint32_t(attrs[i].attrs) << 16 | attrs[i].index; - ID.AddInteger(val); - } +void ParamAttrsList::Profile(FoldingSetNodeID &ID) const { + for (unsigned i = 0; i < attrs.size(); ++i) + ID.AddInteger(unsigned(attrs[i].attrs) << 16 | unsigned(attrs[i].index)); } static ManagedStatic<FoldingSet<ParamAttrsList> > ParamAttrsLists; |