OSDN Git Service

Fix a bug in InstCombine where it attempted to cast a Value* to an Instruction*
authorJoey Gouly <joey.gouly@arm.com>
Mon, 30 Sep 2013 14:18:35 +0000 (14:18 +0000)
committerJoey Gouly <joey.gouly@arm.com>
Mon, 30 Sep 2013 14:18:35 +0000 (14:18 +0000)
commit6ef4dd8cb6852fd0036244a07dc944dc8fb8933c
tree81c4f94db7ceb0a0209ec27b7543e813b1b74af5
parent6206a132a76d407fd276de17147d8c9c2c9e9e9d
Fix a bug in InstCombine where it attempted to cast a Value* to an Instruction*
when it was actually a Constant*.

There are quite a few other casts to Instruction that might have the same problem,
but this is the only one I have a test case for.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191668 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/fmul.ll