From: Nadav Rotem Date: Thu, 7 Mar 2013 01:38:04 +0000 (+0000) Subject: ArrayRef has a OneElt constructor. Beautify the code. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=55d8f6d49023de5182efbb29d0b3bd0035909d62;p=oota-llvm.git ArrayRef has a OneElt constructor. Beautify the code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176604 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/Constants.cpp b/lib/IR/Constants.cpp index dafca987fe7..e67e78e5953 100644 --- 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 Ops(&C, 1); - ExprMapKeyType Key(opc, Ops); + ExprMapKeyType Key(opc, C); return pImpl->ExprConstants.getOrCreate(Ty, Key); }