We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b7f12c commit ef78c8eCopy full SHA for ef78c8e
clang/lib/AST/ASTContext.cpp
@@ -515,7 +515,7 @@ ASTContext::getTypeInfo(const Type *T) {
515
Align = Width;
516
// If the alignment is not a power of 2, round up to the next power of 2.
517
// This happens for non-power-of-2 length vectors.
518
- if (VT->getNumElements() & (VT->getNumElements()-1)) {
+ if (Align & (Align-1)) {
519
Align = llvm::NextPowerOf2(Align);
520
Width = llvm::RoundUpToAlignment(Width, Align);
521
}
0 commit comments