diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-19 21:41:51 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-19 21:45:52 +0100 |
commit | 393b9e9db31a3f83bc8b813ee24b56bc8ed93a49 (patch) | |
tree | ef1547f24269afb12b3cd9f71e7b716b3aecb6f8 /llvm/lib/Analysis/AliasAnalysis.cpp | |
parent | b0750e2df6e4d5251c67f74265edbc753c76afc2 (diff) | |
download | llvm-393b9e9db31a3f83bc8b813ee24b56bc8ed93a49.zip llvm-393b9e9db31a3f83bc8b813ee24b56bc8ed93a49.tar.gz llvm-393b9e9db31a3f83bc8b813ee24b56bc8ed93a49.tar.bz2 |
[MemLoc] Require LocationSize argument (NFC)
When constructing a MemoryLocation by hand, require that a
LocationSize is explicitly specified. D91649 will split up
LocationSize::unknown() into two different states, and callers
should make an explicit choice regarding the kind of MemoryLocation
they want to have.
Diffstat (limited to 'llvm/lib/Analysis/AliasAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/AliasAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp index 515aecd..c3d1565 100644 --- a/llvm/lib/Analysis/AliasAnalysis.cpp +++ b/llvm/lib/Analysis/AliasAnalysis.cpp @@ -668,7 +668,7 @@ ModRefInfo AAResults::callCapturesBefore(const Instruction *I, !Call->isByValArgument(ArgNo))) continue; - AliasResult AR = alias(MemoryLocation(*CI), MemoryLocation(Object)); + AliasResult AR = alias(*CI, Object); // If this is a no-capture pointer argument, see if we can tell that it // is impossible to alias the pointer we're checking. If not, we have to // assume that the call could touch the pointer, even though it doesn't |