diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 2d047195614..670f9721ae8 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -166,8 +166,8 @@ private: bool isPCRelative = false) : value(V), opType(OpTy), regNum(-1) { switch (UseTy) { - case MOTy::Use: flags = DEFFLAG; break; - case MOTy::Def: flags = USEFLAG; break; + case MOTy::Use: flags = USEFLAG; break; + case MOTy::Def: flags = DEFFLAG; break; case MOTy::UseAndDef: flags = DEFFLAG | USEFLAG; break; default: assert(0 && "Invalid value for UseTy!"); }