mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 07:00:45 +00:00
DEBUG() print out "Unknown format" msg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101382 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c407d4596
commit
c8866980fe
@ -3287,8 +3287,10 @@ ARMBasicMCBuilder::ARMBasicMCBuilder(unsigned opc, ARMFormat format,
|
||||
/// performed by the API clients to improve performance.
|
||||
ARMBasicMCBuilder *llvm::CreateMCBuilder(unsigned Opcode, ARMFormat Format) {
|
||||
// For "Unknown format", fail by returning a NULL pointer.
|
||||
if ((unsigned)Format >= (array_lengthof(FuncPtrs) - 1))
|
||||
if ((unsigned)Format >= (array_lengthof(FuncPtrs) - 1)) {
|
||||
DEBUG(errs() << "Unknown format\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return new ARMBasicMCBuilder(Opcode, Format,
|
||||
ARMInsts[Opcode].getNumOperands());
|
||||
|
Loading…
Reference in New Issue
Block a user