From: Gabor Greif Date: Thu, 8 Apr 2010 12:52:19 +0000 (+0000) Subject: use abstract interface X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2fa16e70832bb9f3b3fae1ddd6e4e9e659cd8cf2;p=oota-llvm.git use abstract interface git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100758 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 45e14bf1930..0d0af46dfd9 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -274,7 +274,7 @@ 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.getOperand(0))) + if (isa(&I) && isa(I.getCalledValue())) return true; return false; }