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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168792 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/DataLayout.cpp

index 540f4de2f617a3a30b2bf0de970a1738d6490de5..b39aa271f3a5903bc0f7c9efc9f72915a16ead71 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;
 }