diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-01-30 17:31:00 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-01-30 17:31:00 +0000 |
| commit | ddb2485eb695802972c52ddf07dbf7ff2276dcd1 (patch) | |
| tree | 68c44a10de06b083a425203e7d3aacb6334f9081 /clang/lib/Analysis | |
| parent | 221483dd4e6c4241d1ed0f1545bd97285c83a215 (diff) | |
| download | bcm5719-llvm-ddb2485eb695802972c52ddf07dbf7ff2276dcd1.tar.gz bcm5719-llvm-ddb2485eb695802972c52ddf07dbf7ff2276dcd1.zip | |
Switch Type::isAggregateType to use the C++ definition of "aggregate
type" rather than the C definition. We do this because both C99 and
Clang always use "aggregate type" as "aggregate or union type", and
the C++ definition includes union types.
llvm-svn: 63395
Diffstat (limited to 'clang/lib/Analysis')
| -rw-r--r-- | clang/lib/Analysis/GRExprEngine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index 6a7f86b14bf..d9bdd8be0b6 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -493,8 +493,7 @@ void GRExprEngine::VisitLValue(Expr* Ex, NodeTy* Pred, NodeSet& Dst) { // can be used in a lvalue context. We need to enhance our support // of such temporaries in both the environment and the store, so right // now we just do a regular visit. - assert ((Ex->getType()->isAggregateType() || - Ex->getType()->isUnionType()) && + assert ((Ex->getType()->isAggregateType()) && "Other kinds of expressions with non-aggregate/union types do" " not have lvalues."); |

