aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/SymbolicFile.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-17 01:23:58 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-17 01:23:58 +0000
commit9e3edad932cc41be697ac6e38ba0c67ecd22151e (patch)
tree21d03cb367573cb5633ca6788230f96a21ec2fef /llvm/lib/Object/SymbolicFile.cpp
parent3bcaa812042ba8ffb598c96fae99b07528a0caa5 (diff)
downloadllvm-9e3edad932cc41be697ac6e38ba0c67ecd22151e.zip
llvm-9e3edad932cc41be697ac6e38ba0c67ecd22151e.tar.gz
llvm-9e3edad932cc41be697ac6e38ba0c67ecd22151e.tar.bz2
IPO: Swap || operands to avoid dereferencing end()
IsOperandBundleUse conveniently indicates whether std::next(F->arg_begin(),UseIndex) will get to (or past) end(). Check it first to avoid dereferencing end(). llvm-svn: 278884
Diffstat (limited to 'llvm/lib/Object/SymbolicFile.cpp')
0 files changed, 0 insertions, 0 deletions