Fix PR1666, SPASS with the CBE and 254.gap with the CBE.
authorChris Lattner <sabre@nondot.org>
Sat, 15 Sep 2007 06:51:03 +0000 (06:51 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 15 Sep 2007 06:51:03 +0000 (06:51 +0000)
commit5bda9e49ec9432b610289aae4ee251c803513851
tree923dad62d2c58081090203fc661b8f37e7421d8e
parentb90795fd79798a727fc4c7578184842ea1f2d0f5
Fix PR1666, SPASS with the CBE and 254.gap with the CBE.

GCC optimizes away things like ptr < NULL  to false.  To "fix" this,
have the CBE emit casts of pointers to intptr_t when doing relational
pointer comparisons.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41983 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instructions.h
lib/Target/CBackend/CBackend.cpp