From 8938b17cdaa1bac8262618b030d74b4ba8d4aae8 Mon Sep 17 00:00:00 2001
From: Prakalp Srivastava <prakalps@gmail.com>
Date: Tue, 30 Jun 2015 19:14:50 -0500
Subject: [PATCH] Cannot use nullptr in previous commit. Replaced with 0

---
 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 483c363dd1..7328c1f9c4 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 nullptr;
+  if (F->isVarArg()) return 0;
 
   // First check: see if there are any pointer arguments!  If not, quick exit.
   SmallVector<std::pair<Argument*, unsigned>, 16> PointerArgs;
-- 
GitLab