diff options
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 01dad74fa1..2b94964a91 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -557,9 +557,10 @@ bool IntExprEvaluator::HandleCast(SourceLocation CastLoc, bool DestSigned = DestType->isSignedIntegerType(); // FIXME: Warning for overflow. - uint64_t Space[4]; + uint64_t Space[4]; + bool ignored; (void)F.convertToInteger(Space, DestWidth, DestSigned, - llvm::APFloat::rmTowardZero); + llvm::APFloat::rmTowardZero, &ignored); Result = llvm::APInt(DestWidth, 4, Space); Result.setIsUnsigned(!DestSigned); return true; |