radeon/llvm: Free created llvm memory buffer
v2: Fix indentation Reviewed-by: Tom Stellard <thomas.stellard@amd.com> CC: "10.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
a2b93da84b
commit
d41b10f811
|
@ -42,6 +42,7 @@ LLVMModuleRef radeon_llvm_parse_bitcode(const unsigned char * bitcode,
|
|||
buf = LLVMCreateMemoryBufferWithMemoryRangeCopy((const char*)bitcode,
|
||||
bitcode_len, "radeon");
|
||||
LLVMParseBitcodeInContext(ctx, buf, &module, NULL);
|
||||
LLVMDisposeMemoryBuffer(buf);
|
||||
return module;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue