diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-16 17:27:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-16 17:27:50 +0000 |
commit | 651a221cc2bf1d38ff489d76ad70cbb3c2727426 (patch) | |
tree | 50aa2122129e7d57e65361c6fb910d154257e6f1 /clang/lib/Basic/Builtins.cpp | |
parent | 22c645b33755ea5f94e62bb67a61d0189f631ca0 (diff) | |
download | bcm5719-llvm-651a221cc2bf1d38ff489d76ad70cbb3c2727426.tar.gz bcm5719-llvm-651a221cc2bf1d38ff489d76ad70cbb3c2727426.zip |
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.
llvm-svn: 73510
Diffstat (limited to 'clang/lib/Basic/Builtins.cpp')
-rw-r--r-- | clang/lib/Basic/Builtins.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Builtins.cpp b/clang/lib/Basic/Builtins.cpp index 2662114b4c8..6cb5dab53df 100644 --- a/clang/lib/Basic/Builtins.cpp +++ b/clang/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); } |