-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while running the program #17
Comments
Hello! As the README says, this was written for LLVM 3.8. (Any help with the port would be appreciated.) |
Hello, Adrian. Instead of using dump(), you can directly use the variable to print out the contents. |
OK! I’d accept a pull request if you can offer one. 👍 |
Hello, Adrian. Your code in the repository is working perfect, except your code shown in your blog. That second example that prints out the instruction inside blocks inside functions. I don't think this issue needs a pull request. You can update your blog post |
Aha, got it! In fact, the post is on GitHub too. 😃 So if you have a moment, please do consider sending a PR there. |
Another possibility that 'dump' cannot be found is the clang you use is a 'release build', so it does not include 'dump' function. Trying to build a 'debug' mode clang may solve the problem. |
Rebuilt LLVM in Debug mode, compiled the skeleton pass with it and it worked! LLVM/Clang version used 4.0.1 N.B.! Remember to cmake with paths to the built compilers and not the system ones! |
I tried to run the following code
and I received the following error
clang version 7.0
llvm version 7.0
Operating System Ubuntu 16.04.3 LTS
Should I need to install a different version of clang?
The text was updated successfully, but these errors were encountered: