[llvm] r296138 - Fixed IntOperandMatcher::emitCxxPredicateExpr arguments

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 09:20:27 PST 2017


Author: rksimon
Date: Fri Feb 24 11:20:27 2017
New Revision: 296138

URL: http://llvm.org/viewvc/llvm-project?rev=296138&view=rev
Log:
Fixed IntOperandMatcher::emitCxxPredicateExpr arguments

Extra const in the StringRef argument meant that MSVC complained about it not correctly overriding from OperandPredicateMatcher::emitCxxPredicateExpr (which didn't have the const)

Modified:
    llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp

Modified: llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp?rev=296138&r1=296137&r2=296138&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp Fri Feb 24 11:20:27 2017
@@ -233,7 +233,7 @@ public:
   }
 
   void emitCxxPredicateExpr(raw_ostream &OS,
-                            const StringRef OperandExpr) const override {
+                            StringRef OperandExpr) const override {
     OS << "isOperandImmEqual(" << OperandExpr << ", " << Value << ", MRI)";
   }
 };




More information about the llvm-commits mailing list