[llvm-commits] [llvm] r145009 - /llvm/trunk/include/llvm/Support/BranchProbability.h
Chandler Carruth
chandlerc at gmail.com
Sun Nov 20 03:22:03 PST 2011
Author: chandlerc
Date: Sun Nov 20 05:22:03 2011
New Revision: 145009
URL: http://llvm.org/viewvc/llvm-project?rev=145009&view=rev
Log:
Make an obviously const interface actually be marked as const.
Modified:
llvm/trunk/include/llvm/Support/BranchProbability.h
Modified: llvm/trunk/include/llvm/Support/BranchProbability.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/BranchProbability.h?rev=145009&r1=145008&r2=145009&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/BranchProbability.h (original)
+++ llvm/trunk/include/llvm/Support/BranchProbability.h Sun Nov 20 05:22:03 2011
@@ -42,7 +42,7 @@
uint32_t getDenominator() const { return D; }
// Return (1 - Probability).
- BranchProbability getCompl() {
+ BranchProbability getCompl() const {
return BranchProbability(D - N, D);
}
More information about the llvm-commits
mailing list