mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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
This commit is contained in:
parent
82e905aae4
commit
55d8f6d490
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user