aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/ThreadSafetyCommon.cpp
diff options
context:
space:
mode:
authorTyker <tyker1@outlook.com>2019-11-16 17:04:34 +0100
committerTyker <tyker1@outlook.com>2019-11-16 17:56:09 +0100
commit08ea1ee2db5f9d6460fef1d79d0d1d1a5eb78982 (patch)
tree727588f22579140c098d5a56d37162fa6dd775c4 /clang/lib/Analysis/ThreadSafetyCommon.cpp
parent423f541c1a322963cf482683fe9777ef0692082d (diff)
downloadllvm-08ea1ee2db5f9d6460fef1d79d0d1d1a5eb78982.zip
llvm-08ea1ee2db5f9d6460fef1d79d0d1d1a5eb78982.tar.gz
llvm-08ea1ee2db5f9d6460fef1d79d0d1d1a5eb78982.tar.bz2
[NFC] Refactor representation of materialized temporaries
Summary: this patch refactor representation of materialized temporaries to prevent an issue raised by rsmith in https://reviews.llvm.org/D63640#inline-612718 Reviewers: rsmith, martong, shafik Reviewed By: rsmith Subscribers: rnkovacs, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D69360
Diffstat (limited to 'clang/lib/Analysis/ThreadSafetyCommon.cpp')
-rw-r--r--clang/lib/Analysis/ThreadSafetyCommon.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/ThreadSafetyCommon.cpp b/clang/lib/Analysis/ThreadSafetyCommon.cpp
index 373dfc7..1b8c55e 100644
--- a/clang/lib/Analysis/ThreadSafetyCommon.cpp
+++ b/clang/lib/Analysis/ThreadSafetyCommon.cpp
@@ -244,8 +244,7 @@ til::SExpr *SExprBuilder::translate(const Stmt *S, CallingContext *Ctx) {
case Stmt::CXXBindTemporaryExprClass:
return translate(cast<CXXBindTemporaryExpr>(S)->getSubExpr(), Ctx);
case Stmt::MaterializeTemporaryExprClass:
- return translate(cast<MaterializeTemporaryExpr>(S)->GetTemporaryExpr(),
- Ctx);
+ return translate(cast<MaterializeTemporaryExpr>(S)->getSubExpr(), Ctx);
// Collect all literals
case Stmt::CharacterLiteralClass: