From 6e75544592a4e752a0db53075c2168105b05d37f Mon Sep 17 00:00:00 2001 From: Prakalp Srivastava <prakalps@gmail.com> Date: Thu, 2 Jul 2015 11:02:55 -0500 Subject: [PATCH] Revert "Cannot use nullptr in previous commit. Replaced with 0" This reverts commit 8938b17cdaa1bac8262618b030d74b4ba8d4aae8. --- llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index 7328c1f9c4..483c363dd1 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; -- GitLab