Use llvm::makeArrayRef. NFC.

llvm-svn: 248678
This commit is contained in:
Craig Topper
2015-09-27 03:44:08 +00:00
parent 09af67aba5
commit c005cc06cd
5 changed files with 6 additions and 6 deletions

View File

@@ -2825,7 +2825,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) {
// String pointer.
llvm::Constant *C = nullptr;
if (isUTF16) {
ArrayRef<uint16_t> Arr = llvm::makeArrayRef<uint16_t>(
auto Arr = llvm::makeArrayRef(
reinterpret_cast<uint16_t *>(const_cast<char *>(Entry.first().data())),
Entry.first().size() / 2);
C = llvm::ConstantDataArray::get(VMContext, Arr);