From a7619e13ed79fb3fb1d40724b22a81bf5cf409ca Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 7 May 2008 00:00:34 +0000 Subject: [PATCH] Make the use of the "noinline" attribute conditional on using GCC. llvm-svn: 50789 --- include/llvm/CodeGen/SelectionDAGNodes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 0320f7f7be0..f2ff91abf36 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1415,7 +1415,11 @@ class HandleSDNode : public SDNode { public: // FIXME: Remove the "noinline" attribute once is // fixed. +#ifdef __GNUC__ explicit __attribute__((__noinline__)) HandleSDNode(SDOperand X) +#else + explicit HandleSDNode(SDOperand X) +#endif : SDNode(ISD::HANDLENODE, getSDVTList(MVT::Other)) { Op = X; InitOperands(&Op, 1);