[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[csmith-project/creduce] 87f967: avoid parameter name clash for simple_inliner
Branch: refs/heads/master
Home: https://github.com/csmith-project/creduce
Commit: 87f967404e72209e9039e1c1931aed92a37da365
https://github.com/csmith-project/creduce/commit/87f967404e72209e9039e1c1931aed92a37da365
Author: Yang Chen <chenyang@cs.utah.edu>
Date: 2016-08-03 (Wed, 03 Aug 2016)
Changed paths:
M clang_delta/SimpleInliner.cpp
M clang_delta/SimpleInliner.h
Log Message:
-----------
avoid parameter name clash for simple_inliner
Moritz pointed out that the simple inliner generated invalid
code when a parameter name of the inlined function
exists in an outer scope where the function is inlined.
The issue is now fixed by
(1) first assigning the argument to a temp variable in an outer scope;
(2) then assigning the temp var to the re-generated "parameter";