Skip to content

Handling getCalledOperand() method #40

@BowenZhang-UST

Description

@BowenZhang-UST

Dear developer, please check this issue related to the handling CallInst when it's Inline assembly. Thank you so much!

Commit

The lattest commit.

Location

  • lib/InstModel/LFCPAInstModel/LFCPAInstModel.cpp
    • Line 382
  • lib/Token/Token.cpp
    • Function Token::Token(llvm::Value *Val, std::string Index)
    • Line 51

Description

In LFCPAInstModel.cpp, when the argument FP is null, the function call could also be an inline assembly call.
image

Then this value will be passed to Token(), and cannot be handled by the dyn_cast.
image

Proposed Solution

We try to dynamically cast the value to InlineAssembly and do the corresponding handling logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions