mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 17:32:49 +00:00
suppress gcc3.4.6's <no value returned> warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51372 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
010ee2d955
commit
33e456d5f3
@ -602,6 +602,7 @@ static Constant *ConstantFoldFP(double (*NativeFP)(double), double V,
|
|||||||
if (Ty == Type::DoubleTy)
|
if (Ty == Type::DoubleTy)
|
||||||
return ConstantFP::get(APFloat(V));
|
return ConstantFP::get(APFloat(V));
|
||||||
assert(0 && "Can only constant fold float/double");
|
assert(0 && "Can only constant fold float/double");
|
||||||
|
return 0; // dummy return to suppress warning
|
||||||
}
|
}
|
||||||
|
|
||||||
static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),
|
static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),
|
||||||
@ -619,6 +620,7 @@ static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),
|
|||||||
if (Ty == Type::DoubleTy)
|
if (Ty == Type::DoubleTy)
|
||||||
return ConstantFP::get(APFloat(V));
|
return ConstantFP::get(APFloat(V));
|
||||||
assert(0 && "Can only constant fold float/double");
|
assert(0 && "Can only constant fold float/double");
|
||||||
|
return 0; // dummy return to suppress warning
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ConstantFoldCall - Attempt to constant fold a call to the specified function
|
/// ConstantFoldCall - Attempt to constant fold a call to the specified function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user