[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:
Arthur Eubanks 2022-01-26 17:54:37 -08:00
parent 5c238be04b
commit eee97f1617
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public:
llvm::Type *getElementType() const { return ElementType.getPointer(); } llvm::Type *getElementType() const { return ElementType.getPointer(); }
CharUnits getAlignment() const { CharUnits getAlignment() const {
unsigned AlignLog = (Pointer.getInt() << 3) | ElementType.getInt(); unsigned AlignLog = (Pointer.getInt() << 3) | ElementType.getInt();
return CharUnits::fromQuantity(1UL << AlignLog); return CharUnits::fromQuantity(CharUnits::QuantityType(1) << AlignLog);
} }
}; };