mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Remove mid-optimizer warning. This situation should be handled differently,
such as by a compiler warning, a check in clang -fsanitizer=undefined, being optimized to unreachable, or a combination of the above. PR14722. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1153,11 +1153,8 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
|
|||||||
|
|
||||||
// If we are removing arguments to the function, emit an obnoxious warning.
|
// If we are removing arguments to the function, emit an obnoxious warning.
|
||||||
if (FT->getNumParams() < NumActualArgs) {
|
if (FT->getNumParams() < NumActualArgs) {
|
||||||
if (!FT->isVarArg()) {
|
// TODO: if (!FT->isVarArg()) this call may be unreachable. PR14722
|
||||||
FT->getContext().emitWarning("while resolving call to function '" +
|
if (FT->isVarArg()) {
|
||||||
Callee->getName() +
|
|
||||||
"' arguments were dropped");
|
|
||||||
} else {
|
|
||||||
// Add all of the arguments in their promoted form to the arg list.
|
// Add all of the arguments in their promoted form to the arg list.
|
||||||
for (unsigned i = FT->getNumParams(); i != NumActualArgs; ++i, ++AI) {
|
for (unsigned i = FT->getNumParams(); i != NumActualArgs; ++i, ++AI) {
|
||||||
Type *PTy = getPromotedType((*AI)->getType());
|
Type *PTy = getPromotedType((*AI)->getType());
|
||||||
|
Reference in New Issue
Block a user