[llvm] r262643 - Fix breakage caused by r262636.

Easwaran Raman via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 10:53:20 PST 2016


Author: eraman
Date: Thu Mar  3 12:53:20 2016
New Revision: 262643

URL: http://llvm.org/viewvc/llvm-project?rev=262643&view=rev
Log:
Fix breakage caused by r262636.

Use LLVM_ATTRIBUTE_UNUSED instead of __attribute_((unused))

Modified:
    llvm/trunk/lib/Analysis/InlineCost.cpp

Modified: llvm/trunk/lib/Analysis/InlineCost.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InlineCost.cpp?rev=262643&r1=262642&r2=262643&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/InlineCost.cpp (original)
+++ llvm/trunk/lib/Analysis/InlineCost.cpp Thu Mar  3 12:53:20 2016
@@ -585,7 +585,7 @@ bool CallAnalyzer::isKnownNonNullInCalle
 // Adjust the threshold based on callsite hotness. Currently this is a nop.
 int CallAnalyzer::getAdjustedThreshold(int Threshold,
                                        Optional<uint64_t> CallSiteCount
-                                       __attribute__((unused))) {
+                                       LLVM_ATTRIBUTE_UNUSED) {
   // FIXME: The new threshold should be computed from the given Threshold and
   // the callsite hotness.
   return Threshold;




More information about the llvm-commits mailing list