AccessesArgumentsReadonly is read-only.

llvm-svn: 118615
This commit is contained in:
Dan Gohman 2010-11-09 19:50:00 +00:00
parent bdb22007bb
commit 0a843c907f
1 changed files with 3 additions and 1 deletions

View File

@ -270,7 +270,9 @@ public:
/// true. For use when the call site is not known.
///
static bool onlyReadsMemory(ModRefBehavior MRB) {
return MRB == DoesNotAccessMemory || MRB == OnlyReadsMemory;
return MRB == DoesNotAccessMemory ||
MRB == AccessesArgumentsReadonly ||
MRB == OnlyReadsMemory;
}