diff --git a/lib/Transforms/Utils/BasicInliner.cpp b/lib/Transforms/Utils/BasicInliner.cpp index 73e8bd84676..8c8a85eda9d 100644 --- a/lib/Transforms/Utils/BasicInliner.cpp +++ b/lib/Transforms/Utils/BasicInliner.cpp @@ -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;