[clang] Use proper type to left shift after D117262
Causing warnings like warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits as reported in D117262.
This commit is contained in:
parent
5c238be04b
commit
eee97f1617
|
|
@ -66,7 +66,7 @@ public:
|
|||
llvm::Type *getElementType() const { return ElementType.getPointer(); }
|
||||
CharUnits getAlignment() const {
|
||||
unsigned AlignLog = (Pointer.getInt() << 3) | ElementType.getInt();
|
||||
return CharUnits::fromQuantity(1UL << AlignLog);
|
||||
return CharUnits::fromQuantity(CharUnits::QuantityType(1) << AlignLog);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue