mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
isa+cast -> dyn_cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4376fea663
commit
507ffd2423
@ -3789,10 +3789,8 @@ void SelectionDAGLowering::visitInlineAsm(CallSite CS) {
|
|||||||
// If this is an input or an indirect output, process the call argument.
|
// If this is an input or an indirect output, process the call argument.
|
||||||
// BasicBlocks are labels, currently appearing only in asm's.
|
// BasicBlocks are labels, currently appearing only in asm's.
|
||||||
if (OpInfo.CallOperandVal) {
|
if (OpInfo.CallOperandVal) {
|
||||||
if (isa<BasicBlock>(OpInfo.CallOperandVal))
|
if (BasicBlock *BB = dyn_cast<BasicBlock>(OpInfo.CallOperandVal))
|
||||||
OpInfo.CallOperand =
|
OpInfo.CallOperand = DAG.getBasicBlock(FuncInfo.MBBMap[BB]);
|
||||||
DAG.getBasicBlock(FuncInfo.MBBMap[cast<BasicBlock>(
|
|
||||||
OpInfo.CallOperandVal)]);
|
|
||||||
else {
|
else {
|
||||||
OpInfo.CallOperand = getValue(OpInfo.CallOperandVal);
|
OpInfo.CallOperand = getValue(OpInfo.CallOperandVal);
|
||||||
const Type *OpTy = OpInfo.CallOperandVal->getType();
|
const Type *OpTy = OpInfo.CallOperandVal->getType();
|
||||||
|
Loading…
Reference in New Issue
Block a user