We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c238be commit eee97f1Copy full SHA for eee97f1
clang/lib/CodeGen/Address.h
@@ -66,7 +66,7 @@ template <typename T> class AddressImpl<T, true> {
66
llvm::Type *getElementType() const { return ElementType.getPointer(); }
67
CharUnits getAlignment() const {
68
unsigned AlignLog = (Pointer.getInt() << 3) | ElementType.getInt();
69
- return CharUnits::fromQuantity(1UL << AlignLog);
+ return CharUnits::fromQuantity(CharUnits::QuantityType(1) << AlignLog);
70
}
71
};
72
0 commit comments