diff options
author | Duncan Sands <baldrick@free.fr> | 2008-01-06 10:12:28 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-01-06 10:12:28 +0000 |
commit | 55e5090fe8d14903d508159edbc25376878ec71f (patch) | |
tree | 0a04a5f9e5f346268d4ab923638264367804f639 /llvm/lib/VMCore/ParameterAttributes.cpp | |
parent | 10324d01754c2848ccfb5b30149bedada6767591 (diff) | |
download | bcm5719-llvm-55e5090fe8d14903d508159edbc25376878ec71f.tar.gz bcm5719-llvm-55e5090fe8d14903d508159edbc25376878ec71f.zip |
When transforming a call to a bitcast function into
a direct call with cast parameters and cast return
value (if any), instcombine was prepared to cast any
non-void return value into any other, whether castable
or not. Add a new predicate for testing whether casting
is valid, and check it both for the return value and
(as a cleanup) for the parameters.
llvm-svn: 45657
Diffstat (limited to 'llvm/lib/VMCore/ParameterAttributes.cpp')
0 files changed, 0 insertions, 0 deletions