Allow creation of single-byte MCAtoms.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184344 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ahmed Bougacha
2013-06-19 20:18:59 +00:00
parent ad966ea7a8
commit 7ab184a2a1
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ static bool AtomComp(const MCAtom *L, uint64_t Addr) {
void MCModule::map(MCAtom *NewAtom) {
uint64_t Begin = NewAtom->Begin;
assert(Begin < NewAtom->End && "Creating MCAtom with endpoints reversed?");
assert(Begin <= NewAtom->End && "Creating MCAtom with endpoints reversed?");
// Check for atoms already covering this range.
AtomListTy::iterator I = std::lower_bound(atom_begin(), atom_end(),