Not setting all the fields is confusing...

llvm-svn: 72506
This commit is contained in:
Mike Stump 2009-05-28 00:16:27 +00:00
parent 16f422ec86
commit 01c2d0a17c
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public:
RValue ER; RValue ER;
ER.V1 = V; ER.V1 = V;
ER.Flavor = Scalar; ER.Flavor = Scalar;
ER.Volatile = false;
return ER; return ER;
} }
static RValue getComplex(llvm::Value *V1, llvm::Value *V2) { static RValue getComplex(llvm::Value *V1, llvm::Value *V2) {
@ -76,6 +77,7 @@ public:
ER.V1 = V1; ER.V1 = V1;
ER.V2 = V2; ER.V2 = V2;
ER.Flavor = Complex; ER.Flavor = Complex;
ER.Volatile = false;
return ER; return ER;
} }
static RValue getComplex(const std::pair<llvm::Value *, llvm::Value *> &C) { static RValue getComplex(const std::pair<llvm::Value *, llvm::Value *> &C) {
@ -83,6 +85,7 @@ public:
ER.V1 = C.first; ER.V1 = C.first;
ER.V2 = C.second; ER.V2 = C.second;
ER.Flavor = Complex; ER.Flavor = Complex;
ER.Volatile = false;
return ER; return ER;
} }
// FIXME: Aggregate rvalues need to retain information about whether they are // FIXME: Aggregate rvalues need to retain information about whether they are