[llvm-commits] [llvm] r155288 - /llvm/trunk/include/llvm/CodeGen/SlotIndexes.h

Bill Wendling isanbard at gmail.com
Mon Apr 23 11:34:07 PDT 2012


Done. Thanks!

-bw

On Apr 23, 2012, at 6:09 AM, NAKAMURA Takumi <geek4civic at gmail.com> wrote:

> Bill, please pick it up into release_31.
> 
> It fixes PR12612 (msvc Debug build).
> 
> 2012/4/22 Benjamin Kramer <benny.kra at googlemail.com>:
>> Author: d0k
>> Date: Sat Apr 21 11:05:27 2012
>> New Revision: 155288
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=155288&view=rev
>> Log:
>> Remove unused PointerLikeTypeTraits for IndexListEntry.
>> 
>> It set NumLowBitAvailable = 3 which may not be true on all platforms.  We only
>> ever use 2 bits (the default) so this assumption can be safely removed
>> 
>> Should fix PR12612.
>> 
>> Modified:
>>    llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
>> 
>> Modified: llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SlotIndexes.h?rev=155288&r1=155287&r2=155288&view=diff
>> ==============================================================================
>> --- llvm/trunk/include/llvm/CodeGen/SlotIndexes.h (original)
>> +++ llvm/trunk/include/llvm/CodeGen/SlotIndexes.h Sat Apr 21 11:05:27 2012
>> @@ -73,19 +73,6 @@
>>     void createNode(const IndexListEntry &);
>>   };
>> 
>> -  // Specialize PointerLikeTypeTraits for IndexListEntry.
>> -  template <>
>> -  class PointerLikeTypeTraits<IndexListEntry*> {
>> -  public:
>> -    static inline void* getAsVoidPointer(IndexListEntry *p) {
>> -      return p;
>> -    }
>> -    static inline IndexListEntry* getFromVoidPointer(void *p) {
>> -      return static_cast<IndexListEntry*>(p);
>> -    }
>> -    enum { NumLowBitsAvailable = 3 };
>> -  };
>> -
>>   /// SlotIndex - An opaque wrapper around machine indexes.
>>   class SlotIndex {
>>     friend class SlotIndexes;
>> 
>> 
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list