We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65fab2 commit a9231e3Copy full SHA for a9231e3
clang/lib/CodeGen/CGExprScalar.cpp
@@ -4186,7 +4186,9 @@ Value *ScalarExprEmitter::EmitOverflowCheckedBinOp(const BinOpInfo &Ops) {
4186
return phi;
4187
}
4188
4189
-/// This function is used for BO_Add/BO_Sub/BO_AddAssign/BO_SubAssign.
+/// BO_Add/BO_Sub are handled by EmitPointerWithAlignment to preserve alignment
4190
+/// information.
4191
+/// This function is used for BO_AddAssign/BO_SubAssign.
4192
static Value *emitPointerArithmetic(CodeGenFunction &CGF, const BinOpInfo &op,
4193
bool isSubtraction) {
4194
// Must have binary (not unary) expr here. Unary pointer
0 commit comments