aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineConstantPool.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-09-06 12:56:52 +0000
committerDuncan Sands <baldrick@free.fr>2009-09-06 12:56:52 +0000
commit18f13c66bfb9cb2116be0f339fa955949dd60dd1 (patch)
treeee4b39eeb994427f8087f9ddc48033c404191fda /include/llvm/CodeGen/MachineConstantPool.h
parentc2d98bc0d682419f09659d94afefd6a6266dd6ee (diff)
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 'include/llvm/CodeGen/MachineConstantPool.h')
-rw-r--r--include/llvm/CodeGen/MachineConstantPool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h
index 59d8e63526..8d6c1d1e4c 100644
--- a/include/llvm/CodeGen/MachineConstantPool.h
+++ b/include/llvm/CodeGen/MachineConstantPool.h
@@ -89,7 +89,7 @@ public:
MachineConstantPoolEntry(MachineConstantPoolValue *V, unsigned A)
: Alignment(A) {
Val.MachineCPVal = V;
- Alignment |= 1 << (sizeof(unsigned)*CHAR_BIT-1);
+ Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1);
}
bool isMachineConstantPoolEntry() const {