forked from OSchip/llvm-project
Moved id_asprintf before id_vsnprintf in the enum used for indexing
KnownFunctionIDs. This allows us to test for a printf-like function that accepts a va_arg argument using a range comparison. llvm-svn: 41006
This commit is contained in:
parent
e081928f49
commit
cfc9419dd4
|
@ -30,8 +30,8 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, std::vector<Decl*> &prevInGroup)
|
|||
KnownFunctionIDs[ id_fprintf ] = &IT.get("fprintf");
|
||||
KnownFunctionIDs[ id_sprintf ] = &IT.get("sprintf");
|
||||
KnownFunctionIDs[ id_snprintf ] = &IT.get("snprintf");
|
||||
KnownFunctionIDs[ id_vsnprintf ] = &IT.get("vsnprintf");
|
||||
KnownFunctionIDs[ id_asprintf ] = &IT.get("asprintf");
|
||||
KnownFunctionIDs[ id_vsnprintf ] = &IT.get("vsnprintf");
|
||||
KnownFunctionIDs[ id_vasprintf ] = &IT.get("vasprintf");
|
||||
KnownFunctionIDs[ id_vfprintf ] = &IT.get("vfprintf");
|
||||
KnownFunctionIDs[ id_vsprintf ] = &IT.get("vsprintf");
|
||||
|
|
|
@ -75,8 +75,8 @@ class Sema : public Action {
|
|||
id_fprintf,
|
||||
id_sprintf,
|
||||
id_snprintf,
|
||||
id_vsnprintf,
|
||||
id_asprintf,
|
||||
id_vsnprintf,
|
||||
id_vasprintf,
|
||||
id_vfprintf,
|
||||
id_vsprintf,
|
||||
|
|
Loading…
Reference in New Issue