From c6a6d39289c1b5a7a27dae119e308dfd325962b7 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 8 Apr 2010 13:50:42 +0000 Subject: use abstract interface in two more places llvm-svn: 100762 --- llvm/lib/Target/CBackend/CBackend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target') diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index c87fadb8a63..5e16a0824d1 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/lib/Target/CBackend/CBackend.cpp @@ -2858,7 +2858,7 @@ void CWriter::lowerIntrinsics(Function &F) { } void CWriter::visitCallInst(CallInst &I) { - if (isa(I.getOperand(0))) + if (isa(I.getCalledValue())) return visitInlineAsm(I); bool WroteCallee = false; @@ -3165,7 +3165,7 @@ static std::string gccifyAsm(std::string asmstr) { //TODO: assumptions about what consume arguments from the call are likely wrong // handle communitivity void CWriter::visitInlineAsm(CallInst &CI) { - InlineAsm* as = cast(CI.getOperand(0)); + InlineAsm* as = cast(CI.getCalledValue()); std::vector Constraints = as->ParseConstraints(); std::vector > ResultVals; -- cgit v1.2.3