Searched refs:IntLiteral (Results 1 – 2 of 2) sorted by relevance
217 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(B->getRHS()); in checkBranchCondition() local219 if (!IntLiteral) { in checkBranchCondition()220 IntLiteral = dyn_cast<IntegerLiteral>(B->getLHS()); in checkBranchCondition()224 if (!IntLiteral || IntLiteral->getValue() != 0) in checkBranchCondition()
932 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr); in checkIncorrectRelationalOperator() local935 if (!IntLiteral) { in checkIncorrectRelationalOperator()936 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectRelationalOperator()941 if (!IntLiteral || !BoolExpr->isKnownToHaveBooleanValue()) in checkIncorrectRelationalOperator()944 llvm::APInt IntValue = IntLiteral->getValue(); in checkIncorrectRelationalOperator()948 bool IntLarger = IntLiteral->getType()->isUnsignedIntegerType() || in checkIncorrectRelationalOperator()1032 if (const auto *IntLiteral = dyn_cast<IntegerLiteral>(SubExpr)) { in getIntegerLiteralSubexpressionValue() local1034 llvm::APInt Value = IntLiteral->getValue(); in getIntegerLiteralSubexpressionValue()1051 } else if (const auto *IntLiteral = in getIntegerLiteralSubexpressionValue() local1053 return IntLiteral->getValue(); in getIntegerLiteralSubexpressionValue()