Skip to content
Snippets Groups Projects
Commit 7b96b2e7 authored by Dale Johannesen's avatar Dale Johannesen
Browse files

Make 64-to-32 bit truncations explicit (prevent warnings).

All values here fit in 32 bits.

llvm-svn: 49736
parent 15d8f4cc
No related branches found
No related tags found
No related merge requests found
......@@ -1766,7 +1766,8 @@ namespace ISD {
void setNest() { Flags |= One << NestOffs; }
unsigned getByValAlign() const {
return (One << ((Flags & ByValAlign) >> ByValAlignOffs)) / 2;
return (unsigned)
((One << ((Flags & ByValAlign) >> ByValAlignOffs)) / 2);
}
void setByValAlign(unsigned A) {
Flags = (Flags & ~ByValAlign) |
......@@ -1777,7 +1778,8 @@ namespace ISD {
void setSplit() { Flags |= One << SplitOffs; }
unsigned getOrigAlign() const {
return (One << ((Flags & OrigAlign) >> OrigAlignOffs)) / 2;
return (unsigned)
((One << ((Flags & OrigAlign) >> OrigAlignOffs)) / 2);
}
void setOrigAlign(unsigned A) {
Flags = (Flags & ~OrigAlign) |
......@@ -1785,7 +1787,7 @@ namespace ISD {
}
unsigned getByValSize() const {
return (Flags & ByValSize) >> ByValSizeOffs;
return (unsigned)((Flags & ByValSize) >> ByValSizeOffs);
}
void setByValSize(unsigned S) {
Flags = (Flags & ~ByValSize) | (uint64_t(S) << ByValSizeOffs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment