Skip to content

[Bug]: CallConversion not catching malformed calls #756

@shinlee03

Description

@shinlee03

VAST version

wintern branch

LLVM version

19.1.5

Operating system

macOS

Description

Related issue: #753

I'm currently printing out all callees within matchAndRewrite to verify names used by vast.

When converting hl.calls with signatures in form \01_xx, CallConversion fails to produce any output.

Steps to Reproduce

Compiled test.c:

#include <fcntl.h>
#include <unistd.h>

void test(int name) {
    close(name);
}

vast-front -DHAVE_CONFIG_H -I. -g -O2 -c -o test.mlir test.c -vast-emit-mlir=hl -vast-simplify -vast-show-locs -vast-loc-attrs

Then vast-detect-parsers test.mlir --vast-hl-to-parser -reconcile-unrealized-casts -o vast.parser.mlir.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions