Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Referencing function in another module #33

Open
miguel-petersen opened this issue Aug 21, 2016 · 0 comments
Open

Referencing function in another module #33

miguel-petersen opened this issue Aug 21, 2016 · 0 comments

Comments

@miguel-petersen
Copy link

When using intrinsics such as llvm.gla.fTextureSample.v4f32.v2f32, during the validation pass the validator spits out:

Referencing function in another module!

Now, I have declared no other module, and as far as I know no "internal" module is created inside the LunarGLASS project. The error is generated by this (LLVM, Verifier.cpp, 2074):

Assert1(F->getParent() == Mod, "Referencing function in another module!", &I);

And it turns out that the parent (Module pointer) is null for some reason, now I could not find the reason however I added an illegal (Guarenteed to fail at some point) to keep things running for now:

Assert1(F->getParent() == nullptr || F->getParent() == Mod, "Referencing function in another module!", &I);

And the correct glsl (From the glsl backend) is generated, so I assume this will work for now. However I would like to avoid this for future use, any ideas what could cause this?

Thank you for your time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant