summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2018-06-29 17:08:19 +0000
committerLeonard Chan <leonardchan@google.com>2018-06-29 17:08:19 +0000
commit6e16c60f2688789c5735280499da42c2793d09bb (patch)
tree615b53076f757226484670e28e979e0f147efb69 /clang/lib/Sema/SemaExpr.cpp
parentc61b568e2d88c2591f594cc062f821644e5d447f (diff)
downloadbcm5719-llvm-6e16c60f2688789c5735280499da42c2793d09bb.tar.gz
bcm5719-llvm-6e16c60f2688789c5735280499da42c2793d09bb.zip
[Fixed Point Arithmetic] Rename `-fsame-fbits` flag
- Rename the `-fsame-fbits` flag to `-fpadding-on-unsigned-fixed-point` - Move the flag from a driver option to a cc1 option - Rename the `SameFBits` member in TargetInfo to `PaddingOnUnsignedFixedPoint` - Updated descriptions Differential Revision: https://reviews.llvm.org/D48727 llvm-svn: 335993
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index a438480a4b9..a713136b640 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -3358,7 +3358,7 @@ ExprResult Sema::ActOnNumericConstant(const Token &Tok, Scope *UDLScope) {
bool Overflowed = Literal.GetFixedPointValue(Val, scale);
// Do not use bit_width since some types may have padding like _Fract or
- // unsigned _Accums if SameFBits is set.
+ // unsigned _Accums if PaddingOnUnsignedFixedPoint is set.
auto MaxVal = llvm::APInt::getMaxValue(ibits + scale).zextOrSelf(bit_width);
if (Literal.isFract && Val == MaxVal + 1)
// Clause 6.4.4 - The value of a constant shall be in the range of
OpenPOWER on IntegriCloud