diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-25 04:38:40 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-25 04:38:40 +0000 |
| commit | ebf76269883a37f897a9ecec2bff0e58ea9a16de (patch) | |
| tree | b71bd7dd30b5d2913178873d8ce32ea9db8b8765 | |
| parent | 84408d1fda579817724592fb9e66d0b22f2e71a8 (diff) | |
| download | bcm5719-llvm-ebf76269883a37f897a9ecec2bff0e58ea9a16de.tar.gz bcm5719-llvm-ebf76269883a37f897a9ecec2bff0e58ea9a16de.zip | |
blockfreq: Document assertion
<rdar://problem/14292693>
llvm-svn: 207194
| -rw-r--r-- | llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp index a41ec4527e8..cb92e5bbb11 100644 --- a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp +++ b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp @@ -485,7 +485,7 @@ static void combineWeight(Weight &W, const Weight &OtherW) { } assert(W.Type == OtherW.Type); assert(W.TargetNode == OtherW.TargetNode); - assert(W.Amount < W.Amount + OtherW.Amount); + assert(W.Amount < W.Amount + OtherW.Amount && "Unexpected overflow"); W.Amount += OtherW.Amount; } static void combineWeightsBySorting(WeightList &Weights) { |

