diff options
-rw-r--r-- | lib/IR/Constants.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/IR/Constants.cpp b/lib/IR/Constants.cpp index dafca987fe..e67e78e595 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<Constant*> Ops(&C, 1); - ExprMapKeyType Key(opc, Ops); + ExprMapKeyType Key(opc, C); return pImpl->ExprConstants.getOrCreate(Ty, Key); } |