summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
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
commit11e7b32e4eb6e93d5d67d35e2b8b748db161b872 (patch)
treefb3e0e0109f7a36fa4dff897d8b0daa7e6bd5a71 /llvm/lib/Target
parenta6769269f3db5784e783c121bdf628e27f436d5b (diff)
downloadbcm5719-llvm-11e7b32e4eb6e93d5d67d35e2b8b748db161b872.tar.gz
bcm5719-llvm-11e7b32e4eb6e93d5d67d35e2b8b748db161b872.zip
use abstract interface
llvm-svn: 100758
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index 45e14bf1930..0d0af46dfd9 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud