diff options
author | Duncan Sands <baldrick@free.fr> | 2009-09-06 12:56:52 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-09-06 12:56:52 +0000 |
commit | 18f13c66bfb9cb2116be0f339fa955949dd60dd1 (patch) | |
tree | ee4b39eeb994427f8087f9ddc48033c404191fda /lib | |
parent | c2d98bc0d682419f09659d94afefd6a6266dd6ee (diff) | |
download | external_llvm-18f13c66bfb9cb2116be0f339fa955949dd60dd1.zip external_llvm-18f13c66bfb9cb2116be0f339fa955949dd60dd1.tar.gz external_llvm-18f13c66bfb9cb2116be0f339fa955949dd60dd1.tar.bz2 |
Mark more constants unsigned, as warned about by icc (#68).
Patch by Erick Tryzelaar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/ProfileInfoLoader.cpp | 8 | ||||
-rw-r--r-- | lib/CodeGen/PBQP/Heuristics/Briggs.h | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/Analysis/ProfileInfoLoader.cpp b/lib/Analysis/ProfileInfoLoader.cpp index cb7ae1a..a6c55df 100644 --- a/lib/Analysis/ProfileInfoLoader.cpp +++ b/lib/Analysis/ProfileInfoLoader.cpp @@ -26,10 +26,10 @@ using namespace llvm; // static inline unsigned ByteSwap(unsigned Var, bool Really) { if (!Really) return Var; - return ((Var & (255<< 0)) << 24) | - ((Var & (255<< 8)) << 8) | - ((Var & (255<<16)) >> 8) | - ((Var & (255<<24)) >> 24); + return ((Var & (255U<< 0U)) << 24U) | + ((Var & (255U<< 8U)) << 8U) | + ((Var & (255U<<16U)) >> 8U) | + ((Var & (255U<<24U)) >> 24U); } static unsigned AddCounts(unsigned A, unsigned B) { diff --git a/lib/CodeGen/PBQP/Heuristics/Briggs.h b/lib/CodeGen/PBQP/Heuristics/Briggs.h index 255ffef..3ac9e70 100644 --- a/lib/CodeGen/PBQP/Heuristics/Briggs.h +++ b/lib/CodeGen/PBQP/Heuristics/Briggs.h @@ -118,7 +118,7 @@ class Briggs { if (!add) { udTarget = 1; - dir = -1; + dir = ~0; } EdgeData &linkEdgeData = g.getEdgeData(edgeItr).getHeuristicData(); diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 76d2b97..64bd97e 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -645,7 +645,7 @@ X86RegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF, // } // [EBP] MFI->CreateFixedObject(-TailCallReturnAddrDelta, - (-1*SlotSize)+TailCallReturnAddrDelta); + (-1U*SlotSize)+TailCallReturnAddrDelta); } if (hasFP(MF)) { |