forked from OSchip/llvm-project
The optimized case has to treat __VA_ARGS__ as an argument. This fixes
test/Preprocessor/macro_rescan_varargs.c llvm-svn: 38795
This commit is contained in:
parent
8d31b5d1aa
commit
273ddd5c57
|
@ -542,6 +542,11 @@ static bool isTrivialSingleTokenExpansion(const MacroInfo *MI,
|
|||
I != E; ++I)
|
||||
if (*I == II)
|
||||
return false; // Identifier is a macro argument.
|
||||
|
||||
// If the argument is the __VA_ARGS__ token, we can't fast expand it.
|
||||
if (!strcmp(II->getName(), "__VA_ARGS__"))
|
||||
return false; // Identifier is macro argument.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue