r314066 - Silence unused variable warning in Release builds.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 23 09:08:48 PDT 2017


Author: d0k
Date: Sat Sep 23 09:08:48 2017
New Revision: 314066

URL: http://llvm.org/viewvc/llvm-project?rev=314066&view=rev
Log:
Silence unused variable warning in Release builds.

Modified:
    cfe/trunk/lib/CodeGen/CGExprScalar.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=314066&r1=314065&r2=314066&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Sat Sep 23 09:08:48 2017
@@ -1030,6 +1030,7 @@ Value *ScalarExprEmitter::EmitScalarConv
     // Source and destination are both expected to be vectors.
     llvm::Type *SrcElementTy = SrcTy->getVectorElementType();
     llvm::Type *DstElementTy = DstTy->getVectorElementType();
+    (void)DstElementTy;
 
     assert(((SrcElementTy->isIntegerTy() &&
              DstElementTy->isIntegerTy()) ||




More information about the cfe-commits mailing list