diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2020-01-27 14:54:11 +0100 |
---|---|---|
committer | Haojian Wu <hokein.wu@gmail.com> | 2020-03-16 16:48:49 +0100 |
commit | ddd20ed1586c55947e84620d674a60c118ec6905 (patch) | |
tree | 243da40ec5cd2ca6f57801a7b3be0e9c68209a4e /clang/lib/Sema/SemaPseudoObject.cpp | |
parent | 88fbd8f9e79096da4d013f826fc8b4f0eea1ef66 (diff) | |
download | llvm-ddd20ed1586c55947e84620d674a60c118ec6905.zip llvm-ddd20ed1586c55947e84620d674a60c118ec6905.tar.gz llvm-ddd20ed1586c55947e84620d674a60c118ec6905.tar.bz2 |
[AST] Move dependence computations into a separate file
To group the code in one place, simplify it and make it easier to add
the containsErrors bit and find existing bugs.
Diffstat (limited to 'clang/lib/Sema/SemaPseudoObject.cpp')
-rw-r--r-- | clang/lib/Sema/SemaPseudoObject.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/clang/lib/Sema/SemaPseudoObject.cpp b/clang/lib/Sema/SemaPseudoObject.cpp index 5587e0d..87c3c26 100644 --- a/clang/lib/Sema/SemaPseudoObject.cpp +++ b/clang/lib/Sema/SemaPseudoObject.cpp @@ -167,16 +167,11 @@ namespace { Expr *&rebuiltExpr = ce->isConditionTrue() ? LHS : RHS; rebuiltExpr = rebuild(rebuiltExpr); - return new (S.Context) ChooseExpr(ce->getBuiltinLoc(), - ce->getCond(), - LHS, RHS, - rebuiltExpr->getType(), - rebuiltExpr->getValueKind(), - rebuiltExpr->getObjectKind(), - ce->getRParenLoc(), - ce->isConditionTrue(), - rebuiltExpr->isTypeDependent(), - rebuiltExpr->isValueDependent()); + return new (S.Context) + ChooseExpr(ce->getBuiltinLoc(), ce->getCond(), LHS, RHS, + rebuiltExpr->getType(), rebuiltExpr->getValueKind(), + rebuiltExpr->getObjectKind(), ce->getRParenLoc(), + ce->isConditionTrue()); } llvm_unreachable("bad expression to rebuild!"); |