Use explicit ctor
authorChris Lattner <sabre@nondot.org>
Tue, 10 Sep 2002 22:37:46 +0000 (22:37 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 10 Sep 2002 22:37:46 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3663 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/llvmAsmParser.y

index 58de57aaf79c8a05738ea21029fbaf64b8c8bda8..ee74367d815969f3ee7f13997c6d412024cb1af9 100644 (file)
@@ -10,6 +10,7 @@
 #include "llvm/Module.h"
 #include "llvm/iTerminators.h"
 #include "llvm/iMemory.h"
+#include "llvm/iOperators.h"
 #include "llvm/iPHINode.h"
 #include "Support/STLExtras.h"
 #include "Support/DepthFirstIterator.h"
@@ -1528,7 +1529,7 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
     delete $2;
   }
   | SetCondOps Types ValueRef ',' ValueRef {
-    $$ = BinaryOperator::create($1, getVal(*$2, $3), getVal(*$2, $5));
+    $$ = new SetCondInst($1, getVal(*$2, $3), getVal(*$2, $5));
     if ($$ == 0)
       ThrowException("binary operator returned null!");
     delete $2;