summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2018-10-30 23:01:15 +0000
committerRichard Trieu <rtrieu@google.com>2018-10-30 23:01:15 +0000
commit161121fc9d9d145fa8d8efbe0f6fe82696687d42 (patch)
tree1b8a53b658df34172dd673531edaac05b5e7e134 /clang/lib/CodeGen
parent70ad9c74ae860892004572a141bb3b8ab77878ec (diff)
downloadbcm5719-llvm-161121fc9d9d145fa8d8efbe0f6fe82696687d42.tar.gz
bcm5719-llvm-161121fc9d9d145fa8d8efbe0f6fe82696687d42.zip
Silence unused variable warnings. NFC
llvm-svn: 345669
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index e95cd7d2d63..ef2999a24da 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/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()
OpenPOWER on IntegriCloud