[PATCH] D17207: [ADT] Fix PointerEmbeddedInt when the underlying type is uintptr_t.

Jordan Rose via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 11:58:07 PST 2016


jordan_rose created this revision.
jordan_rose added a reviewer: chandlerc.
jordan_rose added a subscriber: llvm-commits.
jordan_rose set the repository for this revision to rL LLVM.

...and when you try to store negative values in it. Seems pretty straightforward.

(Background: I'm replacing uses of Swift's similar type [[ https://github.com/apple/swift-llvm/blob/swift-2.2-branch/include/llvm/ADT/Fixnum.h | Fixnum ]] with PointerEmbeddedInt.)

Repository:
  rL LLVM

http://reviews.llvm.org/D17207

Files:
  include/llvm/ADT/PointerEmbeddedInt.h
  unittests/ADT/PointerEmbeddedIntTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17207.47828.patch
Type: text/x-patch
Size: 4408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160212/62e245e1/attachment-0001.bin>


More information about the llvm-commits mailing list