mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-15 07:18:33 +00:00
Return early. NFC.
llvm-svn: 367200
This commit is contained in:
parent
9aeab53eba
commit
d524c17029
@ -127,18 +127,18 @@ static bool isCompatible(InputFile *file) {
|
||||
|
||||
if (!config->emulation.empty()) {
|
||||
error(toString(file) + " is incompatible with " + config->emulation);
|
||||
} else {
|
||||
InputFile *existing;
|
||||
if (!objectFiles.empty())
|
||||
existing = objectFiles[0];
|
||||
else if (!sharedFiles.empty())
|
||||
existing = sharedFiles[0];
|
||||
else
|
||||
existing = bitcodeFiles[0];
|
||||
|
||||
error(toString(file) + " is incompatible with " + toString(existing));
|
||||
return false;
|
||||
}
|
||||
|
||||
InputFile *existing;
|
||||
if (!objectFiles.empty())
|
||||
existing = objectFiles[0];
|
||||
else if (!sharedFiles.empty())
|
||||
existing = sharedFiles[0];
|
||||
else
|
||||
existing = bitcodeFiles[0];
|
||||
|
||||
error(toString(file) + " is incompatible with " + toString(existing));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user