From aef241a3347e8c78aaae4cf7982ae02b8f10761c Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Tue, 30 Oct 2018 23:01:15 +0000 Subject: [PATCH] Silence unused variable warnings. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345669 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprScalar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index e95cd7d2d6..ef2999a24d 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -965,6 +965,7 @@ EmitIntegerTruncationCheckHelper(Value *Src, QualType SrcType, Value *Dst, QualType DstType, CGBuilderTy &Builder) { llvm::Type *SrcTy = Src->getType(); llvm::Type *DstTy = Dst->getType(); + (void)DstTy; // Only used in assert() // This should be truncation of integral types. assert(Src != Dst); @@ -1058,6 +1059,8 @@ EmitIntegerSignChangeCheckHelper(Value *Src, QualType SrcType, Value *Dst, bool SrcSigned = SrcType->isSignedIntegerOrEnumerationType(); bool DstSigned = DstType->isSignedIntegerOrEnumerationType(); + (void)SrcSigned; // Only used in assert() + (void)DstSigned; // Only used in assert() unsigned SrcBits = SrcTy->getScalarSizeInBits(); unsigned DstBits = DstTy->getScalarSizeInBits(); (void)SrcBits; // Only used in assert() -- 2.40.0