Make an obviously const interface actually be marked as const.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 20 Nov 2011 11:22:03 +0000 (11:22 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 20 Nov 2011 11:22:03 +0000 (11:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145009 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/BranchProbability.h

index 4b5d9044007c0fbd4e4c07d02c7a6283efd6623c..eedf69247ef5d6fbd5ce7705ff944cea6006cca2 100644 (file)
@@ -42,7 +42,7 @@ public:
   uint32_t getDenominator() const { return D; }
 
   // Return (1 - Probability).
-  BranchProbability getCompl() {
+  BranchProbability getCompl() const {
     return BranchProbability(D - N, D);
   }