Skip to content

Commit c1e0cbf

Browse files
committed
Merge from mainline.
uppress gcc3.4.6's <no value returned> warnings llvm-svn: 51412
1 parent f8d3031 commit c1e0cbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ static Constant *ConstantFoldFP(double (*NativeFP)(double), double V,
602602
if (Ty == Type::DoubleTy)
603603
return ConstantFP::get(APFloat(V));
604604
assert(0 && "Can only constant fold float/double");
605+
return 0; // dummy return to suppress warning
605606
}
606607

607608
static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),
@@ -619,6 +620,7 @@ static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),
619620
if (Ty == Type::DoubleTy)
620621
return ConstantFP::get(APFloat(V));
621622
assert(0 && "Can only constant fold float/double");
623+
return 0; // dummy return to suppress warning
622624
}
623625

624626
/// ConstantFoldCall - Attempt to constant fold a call to the specified function

0 commit comments

Comments
 (0)