summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRForTarget.cpp
diff options
context:
space:
mode:
authorVince Harron <vince@nethacker.com>2015-03-16 03:54:22 +0000
committerVince Harron <vince@nethacker.com>2015-03-16 03:54:22 +0000
commit0fc6c6762f46a19ba59a482d3fbe7440e084baa0 (patch)
tree6324480b3e3d5e2afdf2c0e27488dc37409a56be /lldb/source/Expression/IRForTarget.cpp
parent33bc1b8894e5070023f60dacd4f94c2478bcf1cf (diff)
downloadbcm5719-llvm-0fc6c6762f46a19ba59a482d3fbe7440e084baa0.tar.gz
bcm5719-llvm-0fc6c6762f46a19ba59a482d3fbe7440e084baa0.zip
Added nullptr to fix build
llvm-svn: 232345
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r--lldb/source/Expression/IRForTarget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index af565138495..85ddcfa2595 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -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);
OpenPOWER on IntegriCloud