[llvm-branch-commits] [llvm] 17b195b - [BasicAA] Minor formatting improvements for printers

Philip Reames via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 3 13:13:57 PST 2020


Author: Philip Reames
Date: 2020-12-03T13:08:56-08:00
New Revision: 17b195b632a780adf637432beda63c91eea2c106

URL: https://github.com/llvm/llvm-project/commit/17b195b632a780adf637432beda63c91eea2c106
DIFF: https://github.com/llvm/llvm-project/commit/17b195b632a780adf637432beda63c91eea2c106.diff

LOG: [BasicAA] Minor formatting improvements for printers

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/BasicAliasAnalysis.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/BasicAliasAnalysis.h b/llvm/include/llvm/Analysis/BasicAliasAnalysis.h
index e59fd6919f66..4a149387eb74 100644
--- a/llvm/include/llvm/Analysis/BasicAliasAnalysis.h
+++ b/llvm/include/llvm/Analysis/BasicAliasAnalysis.h
@@ -132,7 +132,7 @@ class BasicAAResult : public AAResultBase<BasicAAResult> {
       OS << "(V=" << V->getName()
 	 << ", zextbits=" << ZExtBits
 	 << ", sextbits=" << SExtBits
-	 << ", scale=" << Scale << ")";
+	 << ", scale=" << Scale << ")\n";
     }
   };
 
@@ -152,14 +152,14 @@ class BasicAAResult : public AAResultBase<BasicAAResult> {
     void print(raw_ostream &OS) const {
       OS << "(DecomposedGEP Base=" << Base->getName()
 	 << ", Offset=" << Offset
-	 << ", VarIndices=[" << Offset;
+	 << ", VarIndices=[";
       for (size_t i = 0; i < VarIndices.size(); i++) {
        if (i != 0)
          OS << ", ";
        VarIndices[i].print(OS);
       }
       OS << "], HasCompileTimeConstantScale=" << HasCompileTimeConstantScale
-	 << ")";
+	 << ")\n";
     }
   };
 


        


More information about the llvm-branch-commits mailing list