File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3348,8 +3348,7 @@ bool ByteCodeExprGen<Emitter>::VisitCallExpr(const CallExpr *E) {
3348
3348
return false ;
3349
3349
if (!this ->emitGetMemberPtrBase (E))
3350
3350
return false ;
3351
- } else {
3352
- if (!this ->visit (MC->getImplicitObjectArgument ()))
3351
+ } else if (!this ->visit (MC->getImplicitObjectArgument ())) {
3353
3352
return false ;
3354
3353
}
3355
3354
}
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class MemberPointer final {
34
34
MemberPointer (uint32_t Address, const Descriptor *D) {
35
35
// This should be impossible to hit, at least I've been unable
36
36
// to write a test for it.
37
+ assert (false && " This constructor shouldn't be reachable for MemberPointers" );
37
38
}
38
39
39
40
MemberPointer (const Decl *D) : Dcl(D) {
@@ -42,8 +43,7 @@ class MemberPointer final {
42
43
}
43
44
44
45
uint64_t getIntegerRepresentation () const {
45
- // This should be impossible to hit, at least I've been unable
46
- // to write a test for it.
46
+ assert (false && " getIntegerRepresentation() shouldn't be reachable for MemberPointers" );
47
47
return 17 ;
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments