From: Chris Lattner Date: Tue, 16 Jun 2009 17:27:50 +0000 (+0000) Subject: follow-on to my patch: some targets (like sparc) do not X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff1d4d97a191ca84a703ef8d6c71ef6934090c4d;p=clang follow-on to my patch: some targets (like sparc) do not have target-specific builtins, and do not set the count. Just default to 0 for these targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Builtins.cpp b/lib/Basic/Builtins.cpp index 2662114b4c..6cb5dab53d 100644 --- a/lib/Basic/Builtins.cpp +++ b/lib/Basic/Builtins.cpp @@ -32,6 +32,8 @@ const Builtin::Info &Builtin::Context::GetRecord(unsigned ID) const { Builtin::Context::Context(const TargetInfo &Target) { // Get the target specific builtins from the target. + TSRecords = 0; + NumTSRecords = 0; Target.getTargetBuiltins(TSRecords, NumTSRecords); }