[PATCH] D49756: Add maybe-unused attribute to a variable.

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 1 16:38:01 PDT 2018


nickdesaulniers updated this revision to Diff 158663.
nickdesaulniers added a comment.

- Prefer cast to void than variable attribute.


Repository:
  rL LLVM

https://reviews.llvm.org/D49756

Files:
  lib/IR/SafepointIRVerifier.cpp


Index: lib/IR/SafepointIRVerifier.cpp
===================================================================
--- lib/IR/SafepointIRVerifier.cpp
+++ lib/IR/SafepointIRVerifier.cpp
@@ -92,6 +92,7 @@
         Listed = true;
       }
     }
+    (void)Listed;
     assert(Listed && "basic block is not found among incoming blocks");
     return false;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49756.158663.patch
Type: text/x-patch
Size: 350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180801/7fb0a111/attachment.bin>


More information about the llvm-commits mailing list