Hi All,<br><br>This patch is for PR1582. As recent discuss on that pr, the C++ FE doesn't track the restrict qualifier in the function declaration at all. When llvm-gcc handling CALL_EXPR and emiting callInst instruction, it can't get the "NoAlias" attribute, and hence insert a BitCast in CallInst. This patch is to eliminate this bitcast.
<br><br>Testcase attached here also.<br><span style="font-family: monospace;"></span>