fix compile

llvm-svn: 100760
This commit is contained in:
Gabor Greif 2010-04-08 13:08:11 +00:00
parent 11e7b32e4e
commit 1c73242012
1 changed files with 2 additions and 2 deletions

View File

@ -274,8 +274,8 @@ namespace {
// isInlineAsm - Check if the instruction is a call to an inline asm chunk
static bool isInlineAsm(const Instruction& I) {
if (isa<CallInst>(&I) && isa<InlineAsm>(I.getCalledValue()))
return true;
if (const CallInst *CI = dyn_cast<CallInst>(&I))
return isa<InlineAsm>(CI->getCalledValue());
return false;
}