Add a cast to void to show that the return value is being
authorDan Gohman <gohman@apple.com>
Sun, 11 Apr 2010 19:30:19 +0000 (19:30 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 11 Apr 2010 19:30:19 +0000 (19:30 +0000)
intentionally ignored.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100984 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IVUsers.cpp

index 9643d16cd5afad2085c55bb6f677325669e36153..fbd3e7071275ec61948a494b324ad1ee5a2b6c05 100644 (file)
@@ -164,7 +164,7 @@ bool IVUsers::runOnLoop(Loop *l, LPPassManager &LPM) {
   // them by stride.  Start by finding all of the PHI nodes in the header for
   // this loop.  If they are induction variables, inspect their uses.
   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I)
-    AddUsersIfInteresting(I);
+    (void)AddUsersIfInteresting(I);
 
   return false;
 }