Skip to content

Commit a9231e3

Browse files
committed
[Clang][CodeGen] Fix comments. NFC.
1 parent b65fab2 commit a9231e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/CodeGen/CGExprScalar.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4186,7 +4186,9 @@ Value *ScalarExprEmitter::EmitOverflowCheckedBinOp(const BinOpInfo &Ops) {
41864186
return phi;
41874187
}
41884188

4189-
/// This function is used for BO_Add/BO_Sub/BO_AddAssign/BO_SubAssign.
4189+
/// BO_Add/BO_Sub are handled by EmitPointerWithAlignment to preserve alignment
4190+
/// information.
4191+
/// This function is used for BO_AddAssign/BO_SubAssign.
41904192
static Value *emitPointerArithmetic(CodeGenFunction &CGF, const BinOpInfo &op,
41914193
bool isSubtraction) {
41924194
// Must have binary (not unary) expr here. Unary pointer

0 commit comments

Comments
 (0)