aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
diff options
context:
space:
mode:
authormartinboehme <mboehme@google.com>2024-01-24 08:06:32 +0100
committerGitHub <noreply@github.com>2024-01-24 08:06:32 +0100
commit7a6c2628e99f70edf6ee46a6b4b4d3d7301353c6 (patch)
tree8423b41db5421dc9ecf5827c6206373d46c32737 /clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
parent5355857038cf6f9e3831504804e973508ffc2d01 (diff)
downloadllvm-7a6c2628e99f70edf6ee46a6b4b4d3d7301353c6.zip
llvm-7a6c2628e99f70edf6ee46a6b4b4d3d7301353c6.tar.gz
llvm-7a6c2628e99f70edf6ee46a6b4b4d3d7301353c6.tar.bz2
[clang][dataflow] Eliminate two uses of `RecordValue::getLoc()`. (#79163)
This is a small step towards eventually eliminating `RecordValue` entirely.
Diffstat (limited to 'clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp')
-rw-r--r--clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp b/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
index 196a136..acb38e5 100644
--- a/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
+++ b/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
@@ -412,13 +412,13 @@ void Environment::initialize() {
QualType ThisPointeeType =
SurroundingMethodDecl->getFunctionObjectParameterType();
setThisPointeeStorageLocation(
- cast<RecordValue>(createValue(ThisPointeeType))->getLoc());
+ cast<RecordStorageLocation>(createObject(ThisPointeeType)));
}
}
} else if (MethodDecl->isImplicitObjectMemberFunction()) {
QualType ThisPointeeType = MethodDecl->getFunctionObjectParameterType();
setThisPointeeStorageLocation(
- cast<RecordValue>(createValue(ThisPointeeType))->getLoc());
+ cast<RecordStorageLocation>(createObject(ThisPointeeType)));
}
}
}