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 2662114..6cb5dab 100644
--- a/lib/Basic/Builtins.cpp
+++ b/lib/Basic/Builtins.cpp
@@ -32,6 +32,8 @@
Builtin::Context::Context(const TargetInfo &Target) {
// Get the target specific builtins from the target.
+ TSRecords = 0;
+ NumTSRecords = 0;
Target.getTargetBuiltins(TSRecords, NumTSRecords);
}