From: Gabor Greif Date: Thu, 8 Apr 2010 13:08:11 +0000 (+0000) Subject: fix compile X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e964af6ff8068cacd880a93d579adb4b714d37c4;p=oota-llvm.git fix compile git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100760 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 0d0af46dfd9..c87fadb8a63 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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(&I) && isa(I.getCalledValue())) - return true; + if (const CallInst *CI = dyn_cast(&I)) + return isa(CI->getCalledValue()); return false; }