mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
More dead code removal (using -Wunreachable-code)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148578 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1617,10 +1617,9 @@ unsigned LLVMGetInstructionCallConv(LLVMValueRef Instr) {
|
||||
Value *V = unwrap(Instr);
|
||||
if (CallInst *CI = dyn_cast<CallInst>(V))
|
||||
return CI->getCallingConv();
|
||||
else if (InvokeInst *II = dyn_cast<InvokeInst>(V))
|
||||
if (InvokeInst *II = dyn_cast<InvokeInst>(V))
|
||||
return II->getCallingConv();
|
||||
llvm_unreachable("LLVMGetInstructionCallConv applies only to call and invoke!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void LLVMSetInstructionCallConv(LLVMValueRef Instr, unsigned CC) {
|
||||
|
Reference in New Issue
Block a user