[GlobalISel][IRTranslator] Fix a typo in assert.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 11 Feb 2016 17:52:28 +0000 (17:52 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 11 Feb 2016 17:52:28 +0000 (17:52 +0000)
llvm-svn: 260550

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp

index e10338d..76f98ff 100644 (file)
@@ -38,7 +38,7 @@ const VRegsSequence &IRTranslator::getOrCreateVRegs(const Value *Val) {
     unsigned Size = Val->getType()->getPrimitiveSizeInBits();
     unsigned VReg = MRI->createGenericVirtualRegister(Size);
     ValRegSequence.push_back(VReg);
-    assert(isa<Constant>(Val) && "Not yet implemented");
+    assert(!isa<Constant>(Val) && "Not yet implemented");
   }
   assert(ValRegSequence.size() == 1 &&
          "We support only one vreg per value at the moment");