[llvm] 9671790 - [TableGen] Fix missing braces in if statement

Paul C. Anagnostopoulos via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 14 09:39:35 PST 2020


Author: Paul C. Anagnostopoulos
Date: 2020-11-14T12:38:44-05:00
New Revision: 9671790b4f7d660790eacb89d15228842a47b149

URL: https://github.com/llvm/llvm-project/commit/9671790b4f7d660790eacb89d15228842a47b149
DIFF: https://github.com/llvm/llvm-project/commit/9671790b4f7d660790eacb89d15228842a47b149.diff

LOG: [TableGen] Fix missing braces in if statement

Added: 
    

Modified: 
    llvm/lib/TableGen/Record.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp
index 221f74f2ab02..43b906ea2248 100644
--- a/llvm/lib/TableGen/Record.cpp
+++ b/llvm/lib/TableGen/Record.cpp
@@ -2608,9 +2608,10 @@ void RecordKeeper::startBackendTimer(StringRef Name) {
 
 void RecordKeeper::stopBackendTimer() {
   if (TimingGroup) {
-    if (BackendTimer)
+    if (BackendTimer) {
       stopTimer();
       BackendTimer = false;
+    }
   }
 }
 


        


More information about the llvm-commits mailing list