From 9f1c49c57d8a5215c3f662b0f00e830a0b06d6de Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Sat, 28 Jan 2012 18:02:29 +0000 Subject: [PATCH] Use defined-at-zero behavior for CLZ/CTZ builtins on PowerPC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149181 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index a557142290..5cdb36f16b 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -572,6 +572,8 @@ public: NumRecords = clang::PPC::LastTSBuiltin-Builtin::FirstTSBuiltin; } + virtual bool isCLZForZeroUndef() const { return false; } + virtual void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const; -- 2.40.0