forked from OSchip/llvm-project
parent
11e7b32e4e
commit
1c73242012
|
|
@ -274,8 +274,8 @@ namespace {
|
||||||
|
|
||||||
// isInlineAsm - Check if the instruction is a call to an inline asm chunk
|
// isInlineAsm - Check if the instruction is a call to an inline asm chunk
|
||||||
static bool isInlineAsm(const Instruction& I) {
|
static bool isInlineAsm(const Instruction& I) {
|
||||||
if (isa<CallInst>(&I) && isa<InlineAsm>(I.getCalledValue()))
|
if (const CallInst *CI = dyn_cast<CallInst>(&I))
|
||||||
return true;
|
return isa<InlineAsm>(CI->getCalledValue());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue