Don't create a MemoryBuffer just to get the MemoryBufferRef. NFC.