Tweak wording of alignment static_assert messages.
llvm-svn: 239907
This commit is contained in:
parent
9c5831f3de
commit
f27e441373
|
@ -229,9 +229,9 @@ public:
|
||||||
};
|
};
|
||||||
// Either Use objects, or a Use pointer can be prepended to User.
|
// Either Use objects, or a Use pointer can be prepended to User.
|
||||||
static_assert(AlignOf<Use>::Alignment >= AlignOf<User>::Alignment,
|
static_assert(AlignOf<Use>::Alignment >= AlignOf<User>::Alignment,
|
||||||
"Alignment sufficient after objects prepended to User");
|
"Alignment is insufficient after objects prepended to User");
|
||||||
static_assert(AlignOf<Use *>::Alignment >= AlignOf<User>::Alignment,
|
static_assert(AlignOf<Use *>::Alignment >= AlignOf<User>::Alignment,
|
||||||
"Alignment sufficient after objects prepended to User");
|
"Alignment is insufficient after objects prepended to User");
|
||||||
|
|
||||||
template<> struct simplify_type<User::op_iterator> {
|
template<> struct simplify_type<User::op_iterator> {
|
||||||
typedef Value* SimpleType;
|
typedef Value* SimpleType;
|
||||||
|
|
|
@ -181,9 +181,9 @@ public:
|
||||||
AttrList[I].Profile(ID);
|
AttrList[I].Profile(ID);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
static_assert(AlignOf<AttributeSetNode>::Alignment >=
|
static_assert(
|
||||||
AlignOf<Attribute>::Alignment,
|
AlignOf<AttributeSetNode>::Alignment >= AlignOf<Attribute>::Alignment,
|
||||||
"Alignment sufficient for objects appended to AttributeSetNode");
|
"Alignment is insufficient for objects appended to AttributeSetNode");
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
/// \class
|
/// \class
|
||||||
|
@ -273,9 +273,10 @@ public:
|
||||||
|
|
||||||
void dump() const;
|
void dump() const;
|
||||||
};
|
};
|
||||||
static_assert(AlignOf<AttributeSetImpl>::Alignment >=
|
static_assert(
|
||||||
AlignOf<AttributeSetImpl::IndexAttrPair>::Alignment,
|
AlignOf<AttributeSetImpl>::Alignment >=
|
||||||
"Alignment sufficient for objects appended to AttributeSetImpl");
|
AlignOf<AttributeSetImpl::IndexAttrPair>::Alignment,
|
||||||
|
"Alignment is insufficient for objects appended to AttributeSetImpl");
|
||||||
|
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
|
|
||||||
|
|
|
@ -384,9 +384,9 @@ StringRef MDString::getString() const {
|
||||||
// Assert that the MDNode types will not be unaligned by the objects
|
// Assert that the MDNode types will not be unaligned by the objects
|
||||||
// prepended to them.
|
// prepended to them.
|
||||||
#define HANDLE_MDNODE_LEAF(CLASS) \
|
#define HANDLE_MDNODE_LEAF(CLASS) \
|
||||||
static_assert(llvm::AlignOf<uint64_t>::Alignment >= \
|
static_assert( \
|
||||||
llvm::AlignOf<CLASS>::Alignment, \
|
llvm::AlignOf<uint64_t>::Alignment >= llvm::AlignOf<CLASS>::Alignment, \
|
||||||
"Alignment sufficient after objects prepended to " #CLASS);
|
"Alignment is insufficient after objects prepended to " #CLASS);
|
||||||
#include "llvm/IR/Metadata.def"
|
#include "llvm/IR/Metadata.def"
|
||||||
|
|
||||||
void *MDNode::operator new(size_t Size, unsigned NumOps) {
|
void *MDNode::operator new(size_t Size, unsigned NumOps) {
|
||||||
|
|
|
@ -44,9 +44,10 @@ void User::allocHungoffUses(unsigned N, bool IsPhi) {
|
||||||
assert(HasHungOffUses && "alloc must have hung off uses");
|
assert(HasHungOffUses && "alloc must have hung off uses");
|
||||||
|
|
||||||
static_assert(AlignOf<Use>::Alignment >= AlignOf<Use::UserRef>::Alignment,
|
static_assert(AlignOf<Use>::Alignment >= AlignOf<Use::UserRef>::Alignment,
|
||||||
"Alignment sufficient for hung-off-uses pieces");
|
"Alignment is insufficient for 'hung-off-uses' pieces");
|
||||||
static_assert(AlignOf<Use::UserRef>::Alignment >= AlignOf<BasicBlock *>::Alignment,
|
static_assert(AlignOf<Use::UserRef>::Alignment >=
|
||||||
"Alignment sufficient for hung-off-uses pieces");
|
AlignOf<BasicBlock *>::Alignment,
|
||||||
|
"Alignment is insufficient for 'hung-off-uses' pieces");
|
||||||
|
|
||||||
// Allocate the array of Uses, followed by a pointer (with bottom bit set) to
|
// Allocate the array of Uses, followed by a pointer (with bottom bit set) to
|
||||||
// the User.
|
// the User.
|
||||||
|
|
Loading…
Reference in New Issue