[llvm-commits] [dragonegg] r158401 - /dragonegg/trunk/src/Convert.cpp
Duncan Sands
baldrick at free.fr
Wed Jun 13 06:19:23 PDT 2012
Author: baldrick
Date: Wed Jun 13 08:19:23 2012
New Revision: 158401
URL: http://llvm.org/viewvc/llvm-project?rev=158401&view=rev
Log:
This variable is only used in assertions, suppress the compiler warning when
assertions are turned off.
Modified:
dragonegg/trunk/src/Convert.cpp
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=158401&r1=158400&r2=158401&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Wed Jun 13 08:19:23 2012
@@ -1778,6 +1778,7 @@
Value *TreeToLLVM::CastFromSameSizeInteger(Value *V, Type *Ty) {
Type *OrigTy = V->getType();
Type *OrigEltTy = OrigTy->getScalarType();
+ (void)OrigEltTy;
assert(OrigEltTy->isIntegerTy() && "Expected an integer type!");
Type *EltTy = Ty->getScalarType();
if (EltTy->isIntegerTy()) {
More information about the llvm-commits
mailing list