diff options
author | Eli Bendersky <eliben@chromium.org> | 2013-10-11 10:16:26 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@chromium.org> | 2013-10-11 10:16:26 -0700 |
commit | e87e8cd648035ac8e2cda19ce0cfd9d9a6e309fb (patch) | |
tree | efa2c12a9699fffc6e5a4ffc64e8a9b1d22ba802 /lib/CodeGen/Analysis.cpp | |
parent | 1763e0545c0ee2748b6dbf4aaa1b4bb9d20a2ef0 (diff) |
Fix bug in rewriting of library calls to intrinsics + new regression test.
The pass gets confused in some cases when library functions get passed to
other functions as arguments, because use_iterator returns the call instruction.
The existing test (rewrite-longjmp-noncall-uses.ll) did not catch this problem
because there a bitcast constexpr was applied to the library function pointer,
and it came up as the use instead of the containing call.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3706
R=mseaborn@chromium.org
Review URL: https://codereview.chromium.org/26952003
Diffstat (limited to 'lib/CodeGen/Analysis.cpp')
0 files changed, 0 insertions, 0 deletions