diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-21 09:18:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-21 09:18:39 +0000 |
commit | 9e3c5a2bde1644899392d9f6f71b204610dc9e0f (patch) | |
tree | dce53a5aced412767efa3a296bf6232371e8b887 /include/llvm/Analysis/DataStructure | |
parent | c2b94805fbaf0562f51d9fb682f0ec9b077706a6 (diff) |
If merging two calls like: foo(A) and bar(B, C), make sure the result has two
arguments, not one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSSupport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSSupport.h b/include/llvm/Analysis/DataStructure/DSSupport.h index 52461f8844..8eb67a0343 100644 --- a/include/llvm/Analysis/DataStructure/DSSupport.h +++ b/include/llvm/Analysis/DataStructure/DSSupport.h @@ -292,6 +292,9 @@ public: for (unsigned a = 0; a != MinArgs; ++a) getPtrArg(a).mergeWith(CS.getPtrArg(a)); + + for (unsigned a = MinArgs, e = CS.getNumPtrArgs(); a != e; ++a) + CallArgs.push_back(CS.getPtrArg(a)); } /// markReachableNodes - This method recursively traverses the specified |