Displaying 2 results from an estimated 2 matches for "tmpfunction1".
Did you mean:
tmpfunction
2004 May 05
0
[LLVMdev] Not allowed to reuse variables?
...n have exactly ONE static location where it is assigned.
If this is straight-line code, an easy way to solve it is to rename the
second occurrence of it, and then use it for all points below the second
definition:
%tmpFunction = load int ()** %puts_kernelPTR
[ use tmpFunction here ]
...
%tmpFunction1 = load int ()** %puts_kernelPTR
[ use tmpFunction1 below ]
If this is in a loop and you MUST use the same variable name, then what
you need is a 'phi' node which merges multiple values across control
flow edges into one variable. An example: if you compile this function
void foo(int j...
2004 May 05
2
[LLVMdev] Not allowed to reuse variables?
Hello!
I am having trouble with identifiers:
%tmpFunction = load int ()** %puts_kernelPTR
...
%tmpFunction = load int ()** %puts_kernelPTR
generates
Redefinition of value named 'tmpFunction' in the 'int () *' type plane!
Is it not allowed to reuse variables? Is there some way to do it?
Anders
----------------------------------------------------------------
Anders