Skip to content

Commit 8203f28

Browse files
committed
fix c scalar bin-op-assign complex
1 parent 84a14ff commit 8203f28

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang/lib/CodeGen/CGExprComplex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,7 @@ EmitComplexCompoundAssignmentLValue(const CompoundAssignOperator *E) {
15501550
LValue CodeGenFunction::
15511551
EmitScalarCompoundAssignWithComplex(const CompoundAssignOperator *E,
15521552
llvm::Value *&Result) {
1553+
ApplyAtomGroup Grp(getDebugInfo());
15531554
CompoundFunc Op = getComplexOp(E->getOpcode());
15541555
RValue Val;
15551556
LValue Ret = ComplexExprEmitter(*this).EmitCompoundAssignLValue(E, Op, Val);

clang/test/DebugInfo/KeyInstructions/complex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: %clang_cc1 -gkey-instructions -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \
22
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
33

4-
// UN: %clang_cc1 -gkey-instructions -x c %s -debug-info-kind=line-tables-only -emit-llvm -o - \
5-
// UN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank --check-prefixes=CHECK,CHECK-C
4+
// RUN: %clang_cc1 -gkey-instructions -x c %s -debug-info-kind=line-tables-only -emit-llvm -o - \
5+
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank --check-prefixes=CHECK,CHECK-C
66

77
_Complex float ci;
88
float f;

0 commit comments

Comments
 (0)