diff options
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index 69ef4cfc4ca..60b16abd196 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -2464,7 +2464,7 @@ void ExprEngine::VisitOffsetOfExpr(const OffsetOfExpr* OOE,      const APSInt &IV = Res.Val.getInt();      assert(IV.getBitWidth() == getContext().getTypeSize(OOE->getType()));      assert(OOE->getType()->isIntegerType()); -    assert(IV.isSigned() == OOE->getType()->isSignedIntegerType()); +    assert(IV.isSigned() == OOE->getType()->isSignedIntegerOrEnumerationType());      SVal X = svalBuilder.makeIntVal(IV);      MakeNode(Dst, OOE, Pred, GetState(Pred)->BindExpr(OOE, X));      return; | 

