[llvm-commits] [llvm] r100760 - /llvm/trunk/lib/Target/CBackend/CBackend.cpp

Gabor Greif ggreif at gmail.com
Thu Apr 8 06:08:12 PDT 2010


Author: ggreif
Date: Thu Apr  8 08:08:11 2010
New Revision: 100760

URL: http://llvm.org/viewvc/llvm-project?rev=100760&view=rev
Log:
fix compile

Modified:
    llvm/trunk/lib/Target/CBackend/CBackend.cpp

Modified: llvm/trunk/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CBackend/CBackend.cpp?rev=100760&r1=100759&r2=100760&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/trunk/lib/Target/CBackend/CBackend.cpp Thu Apr  8 08:08:11 2010
@@ -274,8 +274,8 @@
     
     // 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;
     }
     





More information about the llvm-commits mailing list