Suppress a GCC -Wunused-variable warning in -Asserts builds
authorMatt Beaumont-Gay <matthewbg@google.com>
Fri, 15 Feb 2013 23:12:33 +0000 (23:12 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Fri, 15 Feb 2013 23:12:33 +0000 (23:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175319 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCObjectStreamer.cpp

index b6c7341469dfb37016ca8a124a72f866091367de..0d2ce83a8a109d5a76e0858e4a8faba43e5aeade 100644 (file)
@@ -226,8 +226,10 @@ void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst) {
   IF->getContents().append(Code.begin(), Code.end());
 }
 
+#ifndef NDEBUG
 static const char *BundlingNotImplementedMsg =
   "Aligned bundling is not implemented for this object format";
+#endif
 
 void MCObjectStreamer::EmitBundleAlignMode(unsigned AlignPow2) {
   llvm_unreachable(BundlingNotImplementedMsg);