summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-03-07 01:38:04 +0000
committerNadav Rotem <nrotem@apple.com>2013-03-07 01:38:04 +0000
commit96a4aa678cdcef65f63366da95c9898fcbfd70ad (patch)
treedfbe9b8ea634bfac422d9cc697aef0e546b22fb0 /llvm/lib/IR
parentee86f00f6e9fecc4bd72f97529e471e8b3738b16 (diff)
downloadbcm5719-llvm-96a4aa678cdcef65f63366da95c9898fcbfd70ad.tar.gz
bcm5719-llvm-96a4aa678cdcef65f63366da95c9898fcbfd70ad.zip
ArrayRef has a OneElt constructor. Beautify the code.
llvm-svn: 176604
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/Constants.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index dafca987fe7..e67e78e5953 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -1417,8 +1417,7 @@ static inline Constant *getFoldedCast(
LLVMContextImpl *pImpl = Ty->getContext().pImpl;
// Look up the constant in the table first to ensure uniqueness.
- ArrayRef<Constant*> Ops(&C, 1);
- ExprMapKeyType Key(opc, Ops);
+ ExprMapKeyType Key(opc, C);
return pImpl->ExprConstants.getOrCreate(Ty, Key);
}
OpenPOWER on IntegriCloud