mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2541,7 +2541,7 @@ Constant *ConstantDataArray::getString(LLVMContext &Context,
|
||||
StringRef Str, bool AddNull) {
|
||||
if (!AddNull) {
|
||||
const uint8_t *Data = reinterpret_cast<const uint8_t *>(Str.data());
|
||||
return get(Context, ArrayRef<uint8_t>(const_cast<uint8_t *>(Data),
|
||||
return get(Context, makeArrayRef(const_cast<uint8_t *>(Data),
|
||||
Str.size()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user