Author: martinboehme Date: 2024-01-24T08:06:32+01:00 New Revision: 7a6c2628e99f70edf6ee46a6b4b4d3d7301353c6
URL: https://github.com/llvm/llvm-project/commit/7a6c2628e99f70edf6ee46a6b4b4d3d7301353c6 DIFF: https://github.com/llvm/llvm-project/commit/7a6c2628e99f70edf6ee46a6b4b4d3d7301353c6.diff LOG: [clang][dataflow] Eliminate two uses of `RecordValue::getLoc()`. (#79163) This is a small step towards eventually eliminating `RecordValue` entirely. Added: Modified: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp Removed: ################################################################################ diff --git a/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp b/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp index 196a1360a7750a..acb38e57647453 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))); } } } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits