[StackSafety] Fix byval handling
authorVitaly Buka <vitalybuka@google.com>
Fri, 12 Jun 2020 01:56:20 +0000 (18:56 -0700)
committerVitaly Buka <vitalybuka@google.com>
Fri, 12 Jun 2020 03:58:36 +0000 (20:58 -0700)
commit999307323a456d5da958b4e2dd72874451487482
treea48705e97a826c7161ca3aa5d90c87cc050f59f8
parentc966ed8dc7ce7629c4371314e5ec2119b84e852c
[StackSafety] Fix byval handling

We don't need process paramenters which marked as
byval as we are not going to pass interested allocas
without copying.

If we pass value into byval argument, we just handle that
as Load of corresponding type and stop that branch of analysis.
llvm/lib/Analysis/StackSafetyAnalysis.cpp
llvm/test/Analysis/StackSafetyAnalysis/local.ll