mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Suppress may-be-used-uninitialized warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
892b507f7c
commit
b79742cd47
@ -132,7 +132,8 @@ bool AsmExpr::EvaluateAsRelocatable(MCContext &Ctx, MCValue &Res) const {
|
|||||||
// FIXME: We need target hooks for the evaluation. It may be limited in
|
// FIXME: We need target hooks for the evaluation. It may be limited in
|
||||||
// width, and gas defines the result of comparisons differently from Apple
|
// width, and gas defines the result of comparisons differently from Apple
|
||||||
// as (the result is sign extended).
|
// as (the result is sign extended).
|
||||||
int64_t Result, LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant();
|
int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant();
|
||||||
|
int64_t Result = 0;
|
||||||
switch (ABE->getOpcode()) {
|
switch (ABE->getOpcode()) {
|
||||||
case AsmBinaryExpr::Add: Result = LHS + RHS; break;
|
case AsmBinaryExpr::Add: Result = LHS + RHS; break;
|
||||||
case AsmBinaryExpr::And: Result = LHS & RHS; break;
|
case AsmBinaryExpr::And: Result = LHS & RHS; break;
|
||||||
|
Loading…
Reference in New Issue
Block a user