[llvm-commits] [llvm] r100758 - /llvm/trunk/lib/Target/CBackend/CBackend.cpp
Gabor Greif
ggreif at gmail.com
Thu Apr 8 05:52:20 PDT 2010
Author: ggreif
Date: Thu Apr 8 07:52:19 2010
New Revision: 100758
URL: http://llvm.org/viewvc/llvm-project?rev=100758&view=rev
Log:
use abstract interface
Modified:
llvm/trunk/lib/Target/CBackend/CBackend.cpp
Modified: llvm/trunk/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CBackend/CBackend.cpp?rev=100758&r1=100757&r2=100758&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/trunk/lib/Target/CBackend/CBackend.cpp Thu Apr 8 07:52:19 2010
@@ -274,7 +274,7 @@
// 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;
}
More information about the llvm-commits
mailing list