Skip to content

Commit 4f8ec86

Browse files
bcardosolopeslanza
authored andcommitted
[CIR][CIRGen][NFC] More skeleton conformance
Now that we fixed the dep on VBase, clean up the rest of the function.
1 parent 21ca391 commit 4f8ec86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenClass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,8 +1606,7 @@ CIRGenFunction::getAddressOfBaseClass(Address Value,
16061606
VBase, BaseValueTy, not NullCheckValue);
16071607

16081608
// Cast to the destination type.
1609-
if (VBase)
1610-
Value = Value.withElementType(BaseValueTy);
1609+
Value = Value.withElementType(BaseValueTy);
16111610

16121611
return Value;
16131612
}

0 commit comments

Comments
 (0)