Skip to content

Instantly share code, notes, and snippets.

@shawnl
Created June 9, 2020 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawnl/5655414e6fa01d3e19512047f0ee57fb to your computer and use it in GitHub Desktop.
Save shawnl/5655414e6fa01d3e19512047f0ee57fb to your computer and use it in GitHub Desktop.
/home/shawn/git/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h: In instantiation of ‘static PointerT llvm::PointerIntPairInfo<PointerT, IntBits, PtrTraits>::getPointer(intptr_t) [with PointerT = llvm::PointerIntPair<void*, 2, mlir::Value::Kind, mlir::Value::ImplTypeTraits>; unsigned int IntBits = 1; PtrTraits = llvm::PointerLikeTypeTraits<llvm::PointerIntPair<void*, 2, mlir::Value::Kind, mlir::Value::ImplTypeTraits> >; intptr_t = long int]’:
/home/shawn/git/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:59:57: required from ‘PointerTy llvm::PointerIntPair<PointerTy, IntBits, IntType, PtrTraits, Info>::getPointer() const [with PointerTy = llvm::PointerIntPair<void*, 2, mlir::Value::Kind, mlir::Value::ImplTypeTraits>; unsigned int IntBits = 1; IntType = mlir::Value::Comptime; PtrTraits = llvm::PointerLikeTypeTraits<llvm::PointerIntPair<void*, 2, mlir::Value::Kind, mlir::Value::ImplTypeTraits> >; Info = llvm::PointerIntPairInfo<llvm::PointerIntPair<void*, 2, mlir::Value::Kind, mlir::Value::ImplTypeTraits>, 1, llvm::PointerLikeTypeTraits<llvm::PointerIntPair<void*, 2, mlir::Value::Kind, mlir::Value::ImplTypeTraits> > >]’
/home/shawn/git/llvm-project/mlir/include/mlir/IR/Value.h:105:78: required from here
/home/shawn/git/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:167:41: error: could not convert ‘llvm::PointerLikeTypeTraits<llvm::PointerIntPair<void*, 2, mlir::Value::Kind, mlir::Value::ImplTypeTraits> >::getFromVoidPointer(((void*)(((long unsigned int)Value) & ((long unsigned int)llvm::PointerIntPairInfo<llvm::PointerIntPair<void*, 2, mlir::Value::Kind, mlir::Value::ImplTypeTraits>, 1, llvm::PointerLikeTypeTraits<llvm::PointerIntPair<void*, 2, mlir::Value::Kind, mlir::Value::ImplTypeTraits> > >::PointerBitMask))))’ from ‘PointerIntPair<[...],[...],[...],llvm::PointerLikeTypeTraits<void*>,PointerIntPairInfo<[...],[...],llvm::PointerLikeTypeTraits<void*>>>’ to ‘PointerIntPair<[...],[...],[...],mlir::Value::ImplTypeTraits,PointerIntPairInfo<[...],[...],mlir::Value::ImplTypeTraits>>’
167 | return PtrTraits::getFromVoidPointer(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
| |
| PointerIntPair<[...],[...],[...],llvm::PointerLikeTypeTraits<void*>,PointerIntPairInfo<[...],[...],llvm::PointerLikeTypeTraits<void*>>>
168 | reinterpret_cast<void *>(Value & PointerBitMask));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment