-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in the pointer address space assignment code
The code was not checking the "function-ness" of the type at the correct level. It was checking the "root type", which may be, say a struct, but would use that exclusively for classifying the address spaces of the fields within the struct. A function pointer within a struct would be incorrectly defined with address space 0 only because its parent struct is in address space 0. This patch also moves the address space classification logic for constants down a layer, which allows removal of the address space parameter from a few functions, and fixes the problem at the source rather than patching over top of it in a method higher up in the call stack.
- Loading branch information
1 parent
7fcd433
commit 43d0a3a
Showing
2 changed files
with
12 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters