From: Roman Divacky Date: Wed, 3 Jul 2013 21:08:41 +0000 (+0000) Subject: Check LongDoubleFormat instead of just Width as this is PowerPC specific. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac6f5f40158b3491e8841adb1e6d2f2a2b071594;p=platform%2Fupstream%2Fllvm.git Check LongDoubleFormat instead of just Width as this is PowerPC specific. llvm-svn: 185584 --- diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index e1fead3..2aab22c 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -3730,7 +3730,8 @@ static void handleModeAttr(Sema &S, Decl *D, const AttributeList &Attr) { NewTy = S.Context.LongDoubleTy; break; case 128: - if (!IntegerMode && S.Context.getTargetInfo().getLongDoubleWidth() != 128) { + if (!IntegerMode && &S.Context.getTargetInfo().getLongDoubleFormat() != + &llvm::APFloat::PPCDoubleDouble) { S.Diag(Attr.getLoc(), diag::err_unsupported_machine_mode) << Name; return; }