Fixed issue with aliasing local variables
ISPC++ now produces valid code, or an appropriate error message, for all of my test cases.
This commit is contained in:
2
sym.h
2
sym.h
@@ -141,7 +141,7 @@ public:
|
||||
with a symbol defined at the same scope. (Symbols may shaodow
|
||||
symbols in outer scopes; a warning is issued in this case, but this
|
||||
method still returns true.) */
|
||||
bool AddVariable(Symbol *symbol);
|
||||
bool AddVariable(Symbol *symbol, bool issueScopeWarning=true);
|
||||
|
||||
/** Looks for a variable with the given name in the symbol table. This
|
||||
method searches outward from the innermost scope to the outermost,
|
||||
|
||||
Reference in New Issue
Block a user