mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
radeon/llvm: Don't print an error message when there is no error
A blank line with an empty error message was being printed even when the target lookup succeeded.
This commit is contained in:
parent
f5fc3ac284
commit
d7f9b6ce13
1 changed files with 1 additions and 2 deletions
|
|
@ -81,9 +81,8 @@ radeon_llvm_compile(LLVMModuleRef M, unsigned char ** bytes,
|
|||
#endif
|
||||
std::string err;
|
||||
const Target * AMDGPUTarget = TargetRegistry::lookupTarget("r600", err);
|
||||
fprintf(stderr, "%s\n", err.c_str());
|
||||
if(!AMDGPUTarget) {
|
||||
fprintf(stderr, "Can't find target\n");
|
||||
fprintf(stderr, "Can't find target: %s\n", err.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue