Silence gcc's -Wcomment
authorFilipe Cabecinhas <me@filcab.net>
Wed, 22 Oct 2014 02:16:06 +0000 (02:16 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Wed, 22 Oct 2014 02:16:06 +0000 (02:16 +0000)
gcc's (4.7, I think) -Wcomment warning is not "as smart" as clang's and
warns even if the line right after the backslash-newline sequence only has
a line comment that starts at the beginning of the line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220360 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Analysis/LazyCallGraphTest.cpp

index 5f73d83f0927ba95d6d2f4aaad5751f83cda5a94..6caccb892395e32352d6d7317898ae2e60c5f896 100644 (file)
@@ -37,21 +37,23 @@ std::unique_ptr<Module> parseAssembly(const char *Assembly) {
   return M;
 }
 
-// IR forming a call graph with a diamond of triangle-shaped SCCs:
-//
-//         d1
-//        /  \
-//       d3--d2
-//      /     \
-//     b1     c1
-//   /  \    /  \
-//  b3--b2  c3--c2
-//       \  /
-//        a1
-//       /  \
-//      a3--a2
-//
-// All call edges go up between SCCs, and clockwise around the SCC.
+/*
+   IR forming a call graph with a diamond of triangle-shaped SCCs:
+
+           d1
+          /  \
+         d3--d2
+        /     \
+       b1     c1
+     /  \    /  \
+    b3--b2  c3--c2
+         \  /
+          a1
+         /  \
+        a3--a2
+
+   All call edges go up between SCCs, and clockwise around the SCC.
+ */
 static const char DiamondOfTriangles[] =
      "define void @a1() {\n"
      "entry:\n"