summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/LLVMContextImpl.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-08-27 05:25:25 +0000
committerCraig Topper <craig.topper@gmail.com>2014-08-27 05:25:25 +0000
commite1d1294853f88f663639f0d5582eec5b0ad8f9ff (patch)
tree5bd7b736dc5a2637df5b1cf458986af8e40915ff /llvm/lib/IR/LLVMContextImpl.h
parent3af97225291fe0c74ece7e15d6b45773a2a60007 (diff)
downloadbcm5719-llvm-e1d1294853f88f663639f0d5582eec5b0ad8f9ff.tar.gz
bcm5719-llvm-e1d1294853f88f663639f0d5582eec5b0ad8f9ff.zip
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
llvm-svn: 216525
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.h')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h
index 412f36db06e..b376064d2ed 100644
--- a/llvm/lib/IR/LLVMContextImpl.h
+++ b/llvm/lib/IR/LLVMContextImpl.h
@@ -150,7 +150,7 @@ struct FunctionTypeKeyInfo {
ReturnType(R), Params(P), isVarArg(V) {}
KeyTy(const FunctionType* FT) :
ReturnType(FT->getReturnType()),
- Params(ArrayRef<Type*>(FT->param_begin(), FT->param_end())),
+ Params(makeArrayRef(FT->param_begin(), FT->param_end())),
isVarArg(FT->isVarArg()) {}
bool operator==(const KeyTy& that) const {
if (ReturnType != that.ReturnType)
OpenPOWER on IntegriCloud