Added nullptr to fix build

llvm-svn: 232345
This commit is contained in:
Vince Harron 2015-03-16 03:54:22 +00:00
parent 33bc1b8894
commit 0fc6c6762f
1 changed files with 3 additions and 2 deletions

View File

@ -2206,7 +2206,7 @@ IRForTarget::UnfoldConstant(Constant *old_constant,
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_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);