aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-05-28 00:16:27 +0000
committerMike Stump <mrs@apple.com>2009-05-28 00:16:27 +0000
commit6b73568bc3d44ac6e6d62437cba0e307cf8900d6 (patch)
treee95a465a4f75f25d27029c1455d3f9e677f8db2e /lib/CodeGen
parenteb4f81e174b11633f7b85f555ea5d2834d6dae8a (diff)
Not setting all the fields is confusing...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGValue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGValue.h b/lib/CodeGen/CGValue.h
index e4175bb62d..820e1bd6c3 100644
--- a/lib/CodeGen/CGValue.h
+++ b/lib/CodeGen/CGValue.h
@@ -69,6 +69,7 @@ public:
RValue ER;
ER.V1 = V;
ER.Flavor = Scalar;
+ ER.Volatile = false;
return ER;
}
static RValue getComplex(llvm::Value *V1, llvm::Value *V2) {
@@ -76,6 +77,7 @@ public:
ER.V1 = V1;
ER.V2 = V2;
ER.Flavor = Complex;
+ ER.Volatile = false;
return ER;
}
static RValue getComplex(const std::pair<llvm::Value *, llvm::Value *> &C) {
@@ -83,6 +85,7 @@ public:
ER.V1 = C.first;
ER.V2 = C.second;
ER.Flavor = Complex;
+ ER.Volatile = false;
return ER;
}
// FIXME: Aggregate rvalues need to retain information about whether they are