fix compile
authorGabor Greif <ggreif@gmail.com>
Thu, 8 Apr 2010 13:08:11 +0000 (13:08 +0000)
committerGabor Greif <ggreif@gmail.com>
Thu, 8 Apr 2010 13:08:11 +0000 (13:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100760 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp

index 0d0af46dfd974d8e7b9ee7d48a4b1030a83c4003..c87fadb8a6384b0df97579bd707c9ef8e6229d8a 100644 (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;
     }