diff options
author | Cedric Venet <cedric.venet@laposte.net> | 2009-02-14 16:15:20 +0000 |
---|---|---|
committer | Cedric Venet <cedric.venet@laposte.net> | 2009-02-14 16:15:20 +0000 |
commit | ea684e699ea84e61711e279f5fa7a1b9f3d46bc2 (patch) | |
tree | 32dea78f1f9c230a4997c484d8ba2fc60e7b141b /lib/AST/Builtins.cpp | |
parent | 487cdee2f5bf641af4532fe4af79545997d8f5e3 (diff) |
Fix the build on win32.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Builtins.cpp')
-rw-r--r-- | lib/AST/Builtins.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AST/Builtins.cpp b/lib/AST/Builtins.cpp index e345898b79..92b05975f5 100644 --- a/lib/AST/Builtins.cpp +++ b/lib/AST/Builtins.cpp @@ -50,7 +50,7 @@ void Builtin::Context::InitializeBuiltins(IdentifierTable &Table, } std::string Builtin::Context::getHeaderName(unsigned ID) const { - char *Name = strchr(GetRecord(ID).Attributes, 'f'); + const char *Name = strchr(GetRecord(ID).Attributes, 'f'); if (!Name) return 0; ++Name; @@ -59,7 +59,7 @@ std::string Builtin::Context::getHeaderName(unsigned ID) const { return 0; ++Name; - char *NameEnd = strchr(Name, ':'); + const char *NameEnd = strchr(Name, ':'); assert(NameEnd && "Missing ':' after header name"); return std::string(Name, NameEnd); } @@ -67,7 +67,7 @@ std::string Builtin::Context::getHeaderName(unsigned ID) const { bool Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg) { - char *Printf = strpbrk(GetRecord(ID).Attributes, "pP"); + const char *Printf = strpbrk(GetRecord(ID).Attributes, "pP"); if (!Printf) return false; @@ -77,7 +77,7 @@ Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, assert(*Printf == ':' && "p or P specifier must have be followed by a ':'"); ++Printf; - char *PrintfEnd = strchr(Printf, ':'); + const char *PrintfEnd = strchr(Printf, ':'); assert(PrintfEnd && "printf specifier must end with a ':'"); FormatIdx = strtol(Printf, 0, 10); |