nir: avoid warning when casting bogus pointer
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 8 Aug 2019 11:59:44 +0000 (13:59 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 15 Aug 2019 18:23:35 +0000 (20:23 +0200)
commitc646cd4bac0999547cb61a04f8e80f828d373232
tree64c92851e44f40a29eb4831bc0a555435510f81f
parentb355eef92053feaa8254345a3359ff14555dd52f
nir: avoid warning when casting bogus pointer

This intentionally-bogus pointer generates a warning on some 64-bit
systems, so let's cast to a properly-sized integer first.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir_deref.c