From: Ahmed Bougacha Date: Wed, 15 Feb 2017 20:38:22 +0000 (+0000) Subject: [IR] Accept 'const Type &' in the Type operator<<. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e2172c3297e2edd5cdb8104bdfc903fb7b996d4;p=llvm [IR] Accept 'const Type &' in the Type operator<<. NFC. Type::print is const; there's no reason for the operator not to be. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295227 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Type.h b/include/llvm/IR/Type.h index 778ee06169f..feb69187158 100644 --- a/include/llvm/IR/Type.h +++ b/include/llvm/IR/Type.h @@ -423,7 +423,7 @@ private: }; // Printing of types. -static inline raw_ostream &operator<<(raw_ostream &OS, Type &T) { +static inline raw_ostream &operator<<(raw_ostream &OS, const Type &T) { T.print(OS); return OS; }