diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index 7328c1f9c4d719c8bd2dcb8fd6185adc3587f9a0..483c363dd1975d73f10ffbd20a7fcedb8daac0ea 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -130,7 +130,7 @@ CallGraphNode *ArgPromotion::PromoteArguments(CallGraphNode *CGN) { // parameters. Frontends encode that classification at the call site in the // IR, while in the callee the classification is determined dynamically // on the number of registers consumed so far. - if (F->isVarArg()) return 0; + if (F->isVarArg()) return nullptr; // First check: see if there are any pointer arguments! If not, quick exit. SmallVector<std::pair<Argument*, unsigned>, 16> PointerArgs;