projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82e905a
)
ArrayRef has a OneElt constructor. Beautify the code.
author
Nadav Rotem
<nrotem@apple.com>
Thu, 7 Mar 2013 01:38:04 +0000
(
01:38
+0000)
committer
Nadav Rotem
<nrotem@apple.com>
Thu, 7 Mar 2013 01:38:04 +0000
(
01:38
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176604
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Constants.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Constants.cpp
b/lib/IR/Constants.cpp
index dafca987fe7fac97992ab89e23139c499df6d786..e67e78e595372944689b8c8085f7f29a27aa17a2 100644
(file)
--- a/
lib/IR/Constants.cpp
+++ b/
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);
}