[Lldb-commits] [lldb] r232345 - Added nullptr to fix build

Vince Harron vince at nethacker.com
Sun Mar 15 20:54:22 PDT 2015


Author: vharron
Date: Sun Mar 15 22:54:22 2015
New Revision: 232345

URL: http://llvm.org/viewvc/llvm-project?rev=232345&view=rev
Log:
Added nullptr to fix build


Modified:
    lldb/trunk/source/Expression/IRForTarget.cpp

Modified: lldb/trunk/source/Expression/IRForTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRForTarget.cpp?rev=232345&r1=232344&r2=232345&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Sun Mar 15 22:54:22 2015
@@ -2206,7 +2206,7 @@ IRForTarget::UnfoldConstant(Constant *ol
 
                             ArrayRef <Value*> indices(index_vector);
 
-                            return GetElementPtrInst::Create(ptr, indices, "", llvm::cast<Instruction>(entry_instruction_finder.GetValue(function)));
+                            return GetElementPtrInst::Create(nullptr, ptr, indices, "", llvm::cast<Instruction>(entry_instruction_finder.GetValue(function)));
                         });
 
                         if (!UnfoldConstant(constant_expr, get_element_pointer_maker, entry_instruction_finder))
@@ -2393,7 +2393,8 @@ IRForTarget::ReplaceVariables (Function
                 llvm::Instruction *entry_instruction = llvm::cast<Instruction>(m_entry_instruction_finder.GetValue(function));
 
                 ConstantInt *offset_int(ConstantInt::get(offset_type, offset, true));
-                GetElementPtrInst *get_element_ptr = GetElementPtrInst::Create(argument,
+                GetElementPtrInst *get_element_ptr = GetElementPtrInst::Create(nullptr,
+                                                                               argument,
                                                                                offset_int,
                                                                                "",
                                                                                entry_instruction);





More information about the lldb-commits mailing list