mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
Remove type-punning warning in GRExprEngine. No functionality change.
llvm-svn: 58292
This commit is contained in:
parent
c60dcc25dd
commit
54d399ac5d
@ -2178,10 +2178,13 @@ void GRExprEngine::VisitBinaryOperator(BinaryOperator* B,
|
|||||||
|
|
||||||
assert (B->isCompoundAssignmentOp());
|
assert (B->isCompoundAssignmentOp());
|
||||||
|
|
||||||
if (Op >= BinaryOperator::AndAssign)
|
if (Op >= BinaryOperator::AndAssign) {
|
||||||
((int&) Op) -= (BinaryOperator::AndAssign - BinaryOperator::And);
|
Op = (BinaryOperator::Opcode) (Op - (BinaryOperator::AndAssign -
|
||||||
else
|
BinaryOperator::And));
|
||||||
((int&) Op) -= BinaryOperator::MulAssign;
|
}
|
||||||
|
else {
|
||||||
|
Op = (BinaryOperator::Opcode) (Op - BinaryOperator::MulAssign);
|
||||||
|
}
|
||||||
|
|
||||||
// Perform a load (the LHS). This performs the checks for
|
// Perform a load (the LHS). This performs the checks for
|
||||||
// null dereferences, and so on.
|
// null dereferences, and so on.
|
||||||
|
Loading…
Reference in New Issue
Block a user