Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"this" can not be null
Browse files Browse the repository at this point in the history
Per clang 3.6 checking if "this" is null or not results in a compiler
error.
Yorick Peterse committed Mar 28, 2015
1 parent 99bc4ee commit c471983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/oop.hpp
Original file line number Diff line number Diff line change
@@ -610,7 +610,7 @@ Object* const cUndef = reinterpret_cast<Object*>(0x22L);
}

void validate() const {
assert(this && (!reference_p() || (type_id() > InvalidType && type_id() < LastObjectType)));
assert(!reference_p() || (type_id() > InvalidType && type_id() < LastObjectType));
}

friend class TypeInfo;

0 comments on commit c471983

Please sign in to comment.