Fix a warning in non-asserts builds
authorPhilip Reames <listmail@philipreames.com>
Wed, 4 Feb 2015 05:11:20 +0000 (05:11 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 4 Feb 2015 05:11:20 +0000 (05:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228114 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/PlaceSafepoints.cpp

index 01b49c2ffd02c25d7f4f6e437a3cb6f6c6dd1153..e743a5bce72e87637678fd81870b3c7df9e18e50 100644 (file)
@@ -761,6 +761,7 @@ InsertSafepointPoll(DominatorTree &DT, Instruction *term,
   InlineFunctionInfo IFI;
   bool inlineStatus = InlineFunction(poll, IFI);
   assert(inlineStatus && "inline must succeed");
+  (void)inlineStatus; // suppress warning in release-asserts
 
   // Check post conditions
   assert(IFI.StaticAllocas.empty() && "can't have allocs");