1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Use explicit ctor

llvm-svn: 3663
This commit is contained in:
Chris Lattner 2002-09-10 22:37:46 +00:00
parent 7bbde74ab5
commit 288bd1177d

View 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;