Skip to content

Commit 294a6c3

Browse files
[clang] Fix a warning
This patch fixes: clang/lib/CodeGen/CGExprComplex.cpp:1037:14: error: unused variable 'ComplexElementTy' [-Werror,-Wunused-variable]
1 parent c2fd0e4 commit 294a6c3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/lib/CodeGen/CGExprComplex.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,6 @@ ComplexPairTy ComplexExprEmitter::EmitBinDiv(const BinOpInfo &Op) {
10341034
llvm::Value *OrigLHSi = LHSi;
10351035
if (!LHSi)
10361036
LHSi = llvm::Constant::getNullValue(RHSi->getType());
1037-
QualType ComplexElementTy = Op.Ty->castAs<ComplexType>()->getElementType();
10381037
if (Op.FPFeatures.getComplexRange() == LangOptions::CX_Improved ||
10391038
(Op.FPFeatures.getComplexRange() == LangOptions::CX_Promoted &&
10401039
FPHasBeenPromoted))

0 commit comments

Comments
 (0)