Make this hack more specific to the Apple gcc 4.2 non-LLVM compiler.
authorBill Wendling <isanbard@gmail.com>
Tue, 6 Apr 2010 20:07:21 +0000 (20:07 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 6 Apr 2010 20:07:21 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100556 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index 782d354bdfe74ff418d42a1cd343f7d906cbecd5..91c49fab43acf05febc3373794388bb74ca301c2 100644 (file)
@@ -1564,7 +1564,7 @@ class HandleSDNode : public SDNode {
 public:
   // FIXME: Remove the "noinline" attribute once <rdar://problem/5852746> is
   // fixed.
-#ifdef __GNUC__
+#if __GNUC__==4 && __GNUC_MINOR__==2 && defined(__APPLE__) && !defined(__llvm__)
   explicit __attribute__((__noinline__)) HandleSDNode(SDValue X)
 #else
   explicit HandleSDNode(SDValue X)