diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-11-20 11:22:03 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-11-20 11:22:03 +0000 |
commit | a91a3e04895f2049f7607cfe6fd1aa7b276ed3da (patch) | |
tree | 66184d58a2571201b8dba533338d95887d3e8763 /include/llvm | |
parent | b09a3aa4bbc8a15f9e9d98167e303ce69a665c1f (diff) | |
download | external_llvm-a91a3e04895f2049f7607cfe6fd1aa7b276ed3da.zip external_llvm-a91a3e04895f2049f7607cfe6fd1aa7b276ed3da.tar.gz external_llvm-a91a3e04895f2049f7607cfe6fd1aa7b276ed3da.tar.bz2 |
Make an obviously const interface actually be marked as const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Support/BranchProbability.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/BranchProbability.h b/include/llvm/Support/BranchProbability.h index 4b5d904..eedf692 100644 --- a/include/llvm/Support/BranchProbability.h +++ b/include/llvm/Support/BranchProbability.h @@ -42,7 +42,7 @@ public: uint32_t getDenominator() const { return D; } // Return (1 - Probability). - BranchProbability getCompl() { + BranchProbability getCompl() const { return BranchProbability(D - N, D); } |