[llvm] r237722 - Remove unnecessary cast. NFC

Pete Cooper peter_cooper at apple.com
Tue May 19 13:50:14 PDT 2015


Author: pete
Date: Tue May 19 15:50:14 2015
New Revision: 237722

URL: http://llvm.org/viewvc/llvm-project?rev=237722&view=rev
Log:
Remove unnecessary cast.  NFC

Modified:
    llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h

Modified: llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h?rev=237722&r1=237721&r2=237722&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h (original)
+++ llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h Tue May 19 15:50:14 2015
@@ -120,7 +120,7 @@ public:
   /// @{
 
   /// Get the kind of this expression.
-  VariantKind getKind() const { return static_cast<VariantKind>(Kind); }
+  VariantKind getKind() const { return Kind; }
 
   /// Get the expression this modifier applies to.
   const MCExpr *getSubExpr() const { return Expr; }





More information about the llvm-commits mailing list