From e964af6ff8068cacd880a93d579adb4b714d37c4 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 8 Apr 2010 13:08:11 +0000 Subject: [PATCH] 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(-) 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; }