Fix warning. [-Wunused-variable]
authorPatrik Hägglund <patrik.h.hagglund@ericsson.com>
Wed, 28 Nov 2012 14:32:52 +0000 (14:32 +0000)
committerPatrik Hägglund <patrik.h.hagglund@ericsson.com>
Wed, 28 Nov 2012 14:32:52 +0000 (14:32 +0000)
llvm-svn: 168792

llvm/lib/VMCore/DataLayout.cpp

index 540f4de..b39aa27 100644 (file)
@@ -184,7 +184,7 @@ static unsigned getInt(StringRef R) {
   if (R.empty())
     return 0;
   unsigned Result;
-  bool error = R.getAsInteger(10, Result);
+  bool error = R.getAsInteger(10, Result); (void)error;
   assert(!error && "not a number, or does not fit in an unsigned int");
   return Result;
 }