From f042f97d7e6fbaa73a26f494ed642f2e4e2a948d Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 8 Apr 2010 13:50:42 +0000 Subject: [PATCH] use abstract interface in two more places git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100762 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index c87fadb8a63..5e16a0824d1 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/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; -- 2.34.1