aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorMikael Holmen <mikael.holmen@ericsson.com>2017-10-03 06:03:49 +0000
committerMikael Holmen <mikael.holmen@ericsson.com>2017-10-03 06:03:49 +0000
commit6efe507e4291a6271b27eb052eb9dc5596725421 (patch)
treedab0ae2384b3a8ea91ebe3610047481f2e28995c /llvm/lib/CodeGen/MachineScheduler.cpp
parent8ed1aa91bd83793668a0d0b5b306b7a61f632ce9 (diff)
downloadllvm-6efe507e4291a6271b27eb052eb9dc5596725421.zip
llvm-6efe507e4291a6271b27eb052eb9dc5596725421.tar.gz
llvm-6efe507e4291a6271b27eb052eb9dc5596725421.tar.bz2
[Lint] Avoid failed assertion by fetching the proper pointer type
Summary: When checking if a constant expression is a noop cast we fetched the IntPtrType by doing DL->getIntPtrType(V->getType())). However, there can be cases where V doesn't return a pointer, and then getIntPtrType() triggers an assertion. Now we pass DataLayout to isNoopCast so the method itself can determine what the IntPtrType is. Reviewers: arsenm Reviewed By: arsenm Subscribers: wdng, llvm-commits Differential Revision: https://reviews.llvm.org/D37894 llvm-svn: 314763
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions