From 9fd76dee0045c31d1bf34b80ebf22ba615b1235a Mon Sep 17 00:00:00 2001 From: Andreas Neustifter Date: Thu, 3 Sep 2009 09:11:10 +0000 Subject: [PATCH] Fix build warning. llvm-svn: 80912 --- lib/Analysis/ProfileInfoLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/ProfileInfoLoader.cpp b/lib/Analysis/ProfileInfoLoader.cpp index 7ecfed0b107..cb7ae1a10c3 100644 --- a/lib/Analysis/ProfileInfoLoader.cpp +++ b/lib/Analysis/ProfileInfoLoader.cpp @@ -32,7 +32,7 @@ static inline unsigned ByteSwap(unsigned Var, bool Really) { ((Var & (255<<24)) >> 24); } -static const unsigned AddCounts(unsigned A, unsigned B) { +static unsigned AddCounts(unsigned A, unsigned B) { // If either value is undefined, use the other. if (A == ~0U) return B; if (B == ~0U) return A;