]> granicus.if.org Git - clang/commitdiff
follow-on to my patch: some targets (like sparc) do not
authorChris Lattner <sabre@nondot.org>
Tue, 16 Jun 2009 17:27:50 +0000 (17:27 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Jun 2009 17:27:50 +0000 (17:27 +0000)
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

lib/Basic/Builtins.cpp

index 2662114b4c86f5f17a544d44124709b317881019..6cb5dab53df241fd0cb0f9b5103b23104ba037b1 100644 (file)
@@ -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);  
 }