Page MenuHomePhabricator

D63547.diff
No OneTemporary

File Metadata

Created
Mon, Feb 17, 8:17 AM

D63547.diff

Index: llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
===================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -5073,7 +5073,7 @@
// PowerPC only support small, medium and large code model.
const CodeModel::Model CModel = TM.getCodeModel();
- assert((CModel != CodeModel::Tiny || CModel != CodeModel::Kernel) &&
+ assert(!(CModel == CodeModel::Tiny || CModel == CodeModel::Kernel) &&
"PowerPC doesn't support tiny or kernel code models.");
if (isAIXABI && CModel == CodeModel::Medium)

Event Timeline