summaryrefslogtreecommitdiffstats
path: root/lib/Analysis/IPA
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2008-04-07 14:20:50 +0000
committerDaniel Berlin <dberlin@dberlin.org>2008-04-07 14:20:50 +0000
commita2ce2e3dd97e30f08933f3839c603d13a0fa9806 (patch)
tree7985cbada1bac733a455fab77cf514f19fce2391 /lib/Analysis/IPA
parente2c4304654442ca353b307d73c86dce2a4acadbf (diff)
downloadexternal_llvm-a2ce2e3dd97e30f08933f3839c603d13a0fa9806.zip
external_llvm-a2ce2e3dd97e30f08933f3839c603d13a0fa9806.tar.gz
external_llvm-a2ce2e3dd97e30f08933f3839c603d13a0fa9806.tar.bz2
Fix PR 2169.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r--lib/Analysis/IPA/Andersens.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp
index 9af904f..ab80bab 100644
--- a/lib/Analysis/IPA/Andersens.cpp
+++ b/lib/Analysis/IPA/Andersens.cpp
@@ -957,6 +957,9 @@ bool Andersens::AddConstraintsForExternalCall(CallSite CS, Function *F) {
FirstArg, TempArg));
Constraints.push_back(Constraint(Constraint::Load,
TempArg, SecondArg));
+ // In addition, Dest = Src
+ Constraints.push_back(Constraint(Constraint::Copy,
+ FirstArg, SecondArg));
return true;
}