Layout.getRequiredAlignment());
FieldInfo.second = std::max(FieldInfo.second,
Layout.getRequiredAlignment());
- // Track zero-sized subobjects here where it's already avaliable.
+ // Track zero-sized subobjects here where it's already available.
if (Layout.hasZeroSizedSubObject())
HasZeroSizedSubObject = true;
}
bool ToolChain::isCrossCompiling() const {
llvm::Triple HostTriple(LLVM_HOST_TRIPLE);
switch (HostTriple.getArch()) {
- // The A32/T32/T16 instruction sets are not seperate architectures in
- // this context.
- case llvm::Triple::arm:
- case llvm::Triple::thumb:
- return getArch() != llvm::Triple::arm &&
- getArch() != llvm::Triple::thumb;
- default:
- return HostTriple.getArch() != getArch();
+ // The A32/T32/T16 instruction sets are not separate architectures in this
+ // context.
+ case llvm::Triple::arm:
+ case llvm::Triple::thumb:
+ return getArch() != llvm::Triple::arm && getArch() != llvm::Triple::thumb;
+ default:
+ return HostTriple.getArch() != getArch();
}
}
// Look up and classify the identifier. We don't perform any typo-correction
// after a scope specifier, because in general we can't recover from typos
- // there (eg, after correcting 'A::tempalte B<X>::C', we would need to jump
- // back into scope specifier parsing).
+ // there (eg, after correcting 'A::tempalte B<X>::C' [sic], we would need to
+ // jump back into scope specifier parsing).
Sema::NameClassification Classification
= Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, Next,
IsAddressOfOperand, SS.isEmpty() ? CCC : 0);