aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-07-07 09:15:29 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-07-07 09:15:29 +0000
commit381326d77198f0b707f8a6d6beca649554d406b0 (patch)
tree5e61ab5ba01387dacc975c9b49d5abf373319a64 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parented1fa2084c9a279c6fb53b9029e75ff98173f961 (diff)
downloadllvm-381326d77198f0b707f8a6d6beca649554d406b0.zip
llvm-381326d77198f0b707f8a6d6beca649554d406b0.tar.gz
llvm-381326d77198f0b707f8a6d6beca649554d406b0.tar.bz2
[IR] Make getFirstNonPHI return null if the BB is empty
getFirstNonPHI's documentation states that it returns null if there is no non-PHI instruction. However, it instead returns a pointer to the end iterator. The implementation of getFirstNonPHI claims that dereferencing the iterator will result in an assertion failure but this doesn't occur. Instead, machinery like getFirstInsertionPt will attempt to isa<> this invalid memory which results in unpredictable behavior. Instead, make getFirst* return null if no such instruction exists. llvm-svn: 241570
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
0 files changed, 0 insertions, 0 deletions