[PATCH] D66827: Add support for MS qualifiers __ptr32, __ptr64, __sptr, __uptr.

Fabian Maurer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 11:49:09 PDT 2019


DarkShadow44 added a comment.

@akhuang 
Any update on this? I'd love to see this upstreamed. I'd offer to help, but I'm not well versed in clang.

FWIW, I also found a small bug when using this patchset:

  void func1(void * __ptr32 test) { 
  }
  int main() {
  	func1(0);
  	return 0;
  }

gives

  fatal error: error in backend: Cannot emit physreg copy instruction

This only happens when passing a 0. If you pass 1, for example, it gives a warning (because of no cast) but compiles.
Tested against MSCV, which compiles the code without problems.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66827/new/

https://reviews.llvm.org/D66827





More information about the llvm-commits mailing list