commit | 5251abea41b446c26e3239c8dd6c7edea6fc335d | [log] [tgz] |
---|---|---|
author | David Blaikie <dblaikie@gmail.com> | Wed Feb 20 05:52:05 2013 +0000 |
committer | David Blaikie <dblaikie@gmail.com> | Wed Feb 20 05:52:05 2013 +0000 |
tree | 09e0e6ebf4f25817514dc7367d988f679bddb771 | |
parent | a905c4fd256396b589013304d9793cc199b8a0c6 [diff] [blame] |
Replace SVal llvm::cast support to be well-defined. See r175462 for another example/more details. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175594 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp b/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp index fec29d7..810473f 100644 --- a/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
@@ -65,7 +65,7 @@ ProgramStateRef StTrue, StFalse; llvm::tie(StTrue, StFalse) = - State->assume(cast<DefinedOrUnknownSVal>(AssertionVal)); + State->assume(AssertionVal.castAs<DefinedOrUnknownSVal>()); if (StTrue) { if (StFalse)