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:
Tom Stellard 2012-04-20 09:12:47 -04:00
parent f5fc3ac284
commit d7f9b6ce13

View file

@ -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;
}