diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-10-10 21:34:32 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-10-10 21:34:32 +0000 |
commit | b556085d811027a4ed50d2a5505010c7a9ac9819 (patch) | |
tree | 097ccd1df59419fdd8e9183504da0b74da45945f /clang/lib/CodeGen/CGCall.cpp | |
parent | 19a1a739b15d38b7488a4cabdc25a61b9e0d1fea (diff) | |
download | bcm5719-llvm-b556085d811027a4ed50d2a5505010c7a9ac9819.tar.gz bcm5719-llvm-b556085d811027a4ed50d2a5505010c7a9ac9819.zip |
Revert 374450 "Fix __builtin_assume_aligned with too large values."
The test fails on Windows, with
error: 'warning' diagnostics expected but not seen:
File builtin-assume-aligned.c Line 62: requested alignment
must be 268435456 bytes or smaller; assumption ignored
error: 'warning' diagnostics seen but not expected:
File builtin-assume-aligned.c Line 62: requested alignment
must be 8192 bytes or smaller; assumption ignored
llvm-svn: 374456
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 2ec9e91e315..682a7ccb493 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -4569,7 +4569,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, llvm::Value *Alignment = EmitScalarExpr(AA->getAlignment()); llvm::ConstantInt *AlignmentCI = cast<llvm::ConstantInt>(Alignment); EmitAlignmentAssumption(Ret.getScalarVal(), RetTy, Loc, AA->getLocation(), - AlignmentCI, OffsetValue); + AlignmentCI->getZExtValue(), OffsetValue); } else if (const auto *AA = TargetDecl->getAttr<AllocAlignAttr>()) { llvm::Value *AlignmentVal = CallArgs[AA->getParamIndex().getLLVMIndex()] .getRValue(*this) |