Shuffle an #undef to avoid a warning on FreeBSD
authorEd Maste <emaste@freebsd.org>
Mon, 14 Mar 2016 20:39:08 +0000 (20:39 +0000)
committerEd Maste <emaste@freebsd.org>
Mon, 14 Mar 2016 20:39:08 +0000 (20:39 +0000)
On FreeBSD _LIBCPP_EXTERN_TEMPLATE is being defined from something
included by lldb/lldb-private.h. Undefine it after the #include to avoid
the redefinition warning.

Differential Revision:     http://reviews.llvm.org/D17402

llvm-svn: 263486

lldb/source/Core/CxaDemangle.cpp

index 409f404..62335a9 100644 (file)
@@ -20,9 +20,8 @@
 #include "lldb/Host/windows/win32.h" // snprintf
 #endif
 #include "llvm/Support/Compiler.h"   // LLVM_{NOEXCEPT, CONSTEXPR, ALIGNAS}
-#undef _LIBCPP_EXTERN_TEMPLATE       // Avoid warning below
-
 #include "lldb/lldb-private.h"
+#undef _LIBCPP_EXTERN_TEMPLATE       // Avoid warning below
 
 //===-------------------------- cxa_demangle.cpp --------------------------===//
 //