Skip to content

Commit

Permalink
"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.
  • Loading branch information
Yorick Peterse committed Apr 7, 2015
1 parent b580cd6 commit 50aa735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/oop.hpp
Expand Up @@ -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;
Expand Down

0 comments on commit 50aa735

Please sign in to comment.