Skip to content

Commit 4ba1060

Browse files
committed
[Clang][CodeGen] Address review comments. NFC.
1 parent 88d4571 commit 4ba1060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGExprScalar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4234,7 +4234,7 @@ llvm::Value *CodeGenFunction::EmitPointerArithmetic(
42344234
//
42354235
// Note that we do not suppress the pointer overflow check in this case.
42364236
if (BinaryOperator::isNullPointerArithmeticExtension(
4237-
getContext(), BO->getOpcode(), BO->getLHS(), BO->getRHS())) {
4237+
getContext(), BO->getOpcode(), pointerOperand, indexOperand)) {
42384238
llvm::Value *Ptr = Builder.CreateIntToPtr(index, pointer->getType());
42394239
if (getLangOpts().PointerOverflowDefined ||
42404240
!SanOpts.has(SanitizerKind::PointerOverflow) ||

0 commit comments

Comments
 (0)