[PATCH] D22488: [IR] Introduce a non-integral pointer type
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 11:52:46 PDT 2016
arsenm added a subscriber: arsenm.
================
Comment at: lib/IR/Verifier.cpp:2413-2415
@@ +2412,5 @@
+
+ if (auto *PTy = dyn_cast<PointerType>(SrcTy->getScalarType()))
+ Assert(!M->getDataLayout().isNonIntegralPointerType(PTy),
+ "ptrtoint not supported for non-integral pointers");
+
----------------
What about vector of pointers?
================
Comment at: lib/IR/Verifier.cpp:2442-2444
@@ +2441,5 @@
+
+ if (auto *PTy = dyn_cast<PointerType>(DestTy->getScalarType()))
+ Assert(!M->getDataLayout().isNonIntegralPointerType(PTy),
+ "inttoptr not supported for non-integral pointers");
+
----------------
Ditto
https://reviews.llvm.org/D22488
More information about the llvm-commits
mailing list