[llvm] 9515786 - [llvm][Support][NFC] Fix fallthrough attribute indentation

Timm Bäder via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 30 01:32:23 PDT 2021


Author: Timm Bäder
Date: 2021-04-30T10:31:31+02:00
New Revision: 95157860aeecde33da8dc75c67823ac9ea9c58ff

URL: https://github.com/llvm/llvm-project/commit/95157860aeecde33da8dc75c67823ac9ea9c58ff
DIFF: https://github.com/llvm/llvm-project/commit/95157860aeecde33da8dc75c67823ac9ea9c58ff.diff

LOG: [llvm][Support][NFC] Fix fallthrough attribute indentation

The attribute does not belong to the if statement before and trips up
gcc's indentation checker.

Added: 
    

Modified: 
    llvm/lib/Support/GraphWriter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp
index d8aae92603231..f47a52a853f4e 100644
--- a/llvm/lib/Support/GraphWriter.cpp
+++ b/llvm/lib/Support/GraphWriter.cpp
@@ -54,7 +54,7 @@ std::string llvm::DOT::EscapeString(const std::string &Label) {
             Str.erase(Str.begin()+i); continue;
           default: break;
         }
-        LLVM_FALLTHROUGH;
+      LLVM_FALLTHROUGH;
     case '{': case '}':
     case '<': case '>':
     case '|': case '"':


        


More information about the llvm-commits mailing list