From 2fa16e70832bb9f3b3fae1ddd6e4e9e659cd8cf2 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 8 Apr 2010 12:52:19 +0000 Subject: use abstract interface git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100758 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Target/CBackend') diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 45e14bf193..0d0af46dfd 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; } -- cgit v1.2.3-18-g5258