Fix invalid cast.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Feb 2015 21:51:06 +0000 (21:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Feb 2015 21:51:06 +0000 (21:51 +0000)
commit38ce6c7c1cb5bde2b187dfd0522dd15505b4d30d
treec4f398c8fbb5b974016a4c9fe28806b6b504aa7e
parentad6622575cea014762be787c4b1d34bc40254415
Fix invalid cast.

Fixes PR22525.

Patch by Ben Longbons with testcase by me.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230271 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Core.cpp
unittests/IR/ConstantsTest.cpp