aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-12-17 00:09:51 +0000
committerVedant Kumar <vsk@apple.com>2016-12-17 00:09:51 +0000
commit9529643e644766d3757981a7e76f7c44927c8029 (patch)
tree9bbe4ebeda76c40bc1d517e3e47dc4dff3f0a0f4 /llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp
parente876094038768cacd0fb33ad7355ba3f0023ace8 (diff)
downloadllvm-9529643e644766d3757981a7e76f7c44927c8029.zip
llvm-9529643e644766d3757981a7e76f7c44927c8029.tar.gz
llvm-9529643e644766d3757981a7e76f7c44927c8029.tar.bz2
[BPI] Use a safer constructor to calculate branch probabilities
BPI may trigger signed overflow UB while computing branch probabilities for cold calls or to unreachables. For example, with our current choice of weights, we'll crash if there are >= 2^12 branches to an unreachable. Use a safer BranchProbability constructor which is better at handling fractions with large denominators. rdar://problem/29368161 Differential Revision: https://reviews.llvm.org/D27862 llvm-svn: 290016
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp')
0 files changed, 0 insertions, 0 deletions