Extend Evaluate() to fold (int) <pointer type>.
 - PR3463, PR3398, <rdar://problem/6553401> crash on relocatable
   symbol addresses as constants in static locals.

 - There are many more scenarious we could handle (like arithmetic on
   such an int) but this is the main use case.

llvm-svn: 65074
2 files changed
tree: 6bc9fc5d425fd3896ec20668b220b42c57e836bb
  1. clang/
  2. llvm/