From 63c1c39cde77341c1b2660ebb1ea36ae671a2954 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 8 Apr 2010 13:08:11 +0000 Subject: fix compile git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100760 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Target/CBackend/CBackend.cpp') diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 0d0af46..c87fadb 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; } -- cgit v1.1