mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +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());
|
||||
|
||||
if (Op >= BinaryOperator::AndAssign)
|
||||
((int&) Op) -= (BinaryOperator::AndAssign - BinaryOperator::And);
|
||||
else
|
||||
((int&) Op) -= BinaryOperator::MulAssign;
|
||||
if (Op >= BinaryOperator::AndAssign) {
|
||||
Op = (BinaryOperator::Opcode) (Op - (BinaryOperator::AndAssign -
|
||||
BinaryOperator::And));
|
||||
}
|
||||
else {
|
||||
Op = (BinaryOperator::Opcode) (Op - BinaryOperator::MulAssign);
|
||||
}
|
||||
|
||||
// Perform a load (the LHS). This performs the checks for
|
||||
// null dereferences, and so on.
|
||||
|
Loading…
Reference in New Issue
Block a user