Skip to content

Commit 50aa735

Browse files
author
Yorick Peterse
committedApr 7, 2015
"this" can not be null
Per clang 3.6 checking if "this" is null or not results in a compiler error.
1 parent b580cd6 commit 50aa735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎vm/oop.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ Object* const cUndef = reinterpret_cast<Object*>(0x22L);
610610
}
611611

612612
void validate() const {
613-
assert(this && (!reference_p() || (type_id() > InvalidType && type_id() < LastObjectType)));
613+
assert(!reference_p() || (type_id() > InvalidType && type_id() < LastObjectType));
614614
}
615615

616616
friend class TypeInfo;

0 commit comments

Comments
 (0)
Please sign in to comment.