-
Notifications
You must be signed in to change notification settings - Fork 78
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
malloc and strcpy in LLVM #235
Labels
Comments
Here is my own solution (Thanks to C and clang). for those interested, here is the revised code:
And the resulting LLVM:
|
ghost
closed this as completed
Mar 12, 2024
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi everyone,
I'm still discovering LLIR/LLVM. I need to support global string variables in my target language. My goal is:
So I wrote the following prototype code the implement this:
This generated this LLVM:
I get a segmentation fault error in the strcpy call. Could you help me figuring out what is wrong? Thank you in advance for your precious time.
The text was updated successfully, but these errors were encountered: