Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: src/IceInstARM32.h

Issue 1674033002: Subzero: Clean up some uses of *_cast<>. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup of llvm::cast<> style operations Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceInstARM32.h
diff --git a/src/IceInstARM32.h b/src/IceInstARM32.h
index bce1aca787ddd3b6484855fc2e2be4a6a82ad9ad..cb872a71d8adc9140565b48644c6e125fa3685b5 100644
--- a/src/IceInstARM32.h
+++ b/src/IceInstARM32.h
@@ -348,7 +348,7 @@ public:
static StackVariable *create(Cfg *Func, Type Ty, SizeT Index) {
return new (Func->allocate<StackVariable>()) StackVariable(Ty, Index);
}
- const static OperandKind StackVariableKind =
+ const static auto StackVariableKind =
static_cast<OperandKind>(kVariable_Target);
John 2016/02/07 16:18:32 While at this, constexpr.
Jim Stichnoth 2016/02/07 16:42:42 Done.
static bool classof(const Operand *Operand) {
return Operand->getKind() == StackVariableKind;

Powered by Google App Engine
This is Rietveld 408576698