aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-04-08 12:52:19 +0000
committerGabor Greif <ggreif@gmail.com>2010-04-08 12:52:19 +0000
commitdc1be793384f6cf2e44eb34f76c855de8df85b3c (patch)
tree21a15fcf925a1f858ae6bf4853853548bfcdd92c /lib/Target/CBackend/CBackend.cpp
parentb8f832d331b5206b235262e4395b969d68cf439c (diff)
downloadexternal_llvm-dc1be793384f6cf2e44eb34f76c855de8df85b3c.zip
external_llvm-dc1be793384f6cf2e44eb34f76c855de8df85b3c.tar.gz
external_llvm-dc1be793384f6cf2e44eb34f76c855de8df85b3c.tar.bz2
use abstract interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r--lib/Target/CBackend/CBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 45e14bf..0d0af46 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<CallInst>(&I) && isa<InlineAsm>(I.getOperand(0)))
+ if (isa<CallInst>(&I) && isa<InlineAsm>(I.getCalledValue()))
return true;
return false;
}