Fix warning.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 31 Oct 2008 01:50:01 +0000 (01:50 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 31 Oct 2008 01:50:01 +0000 (01:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58486 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/BasicInliner.cpp

index 73e8bd84676b6301e45e9cd9f906610f1359cf28..8c8a85eda9de274a7c6159b8082772084a108900 100644 (file)
@@ -118,7 +118,7 @@ void BasicInlinerImpl::inlineFunctions() {
         } else {
           int Cost = IC.getValue();
           
-          if (Cost >= BasicInlineThreshold) {
+          if (Cost >= (int) BasicInlineThreshold) {
             DOUT << "  NOT Inlining: cost = " << Cost
                  << ", call: " <<  *CS.getInstruction();
             continue;