diff options
Diffstat (limited to 'CodeGen/CodeGenFunction.h')
-rw-r--r-- | CodeGen/CodeGenFunction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h index 37614e95f0..919e68c91d 100644 --- a/CodeGen/CodeGenFunction.h +++ b/CodeGen/CodeGenFunction.h @@ -141,6 +141,7 @@ public: llvm::Value *getVectorAddr() const { assert(isVectorElt()); return V; } llvm::Value *getVectorIdx() const { assert(isVectorElt()); return VectorIdx; } // ocu vector components. + llvm::Value *getOCUVectorAddr() const { assert(isOCUVectorComp()); return V; } unsigned getOCUVectorComp() const { assert(isOCUVectorComp()); return VectorComp; @@ -164,7 +165,7 @@ public: static LValue MakeOCUVectorComp(llvm::Value *Vec, unsigned Components) { LValue R; - R.LVType = VectorElt; + R.LVType = OCUVectorComp; R.V = Vec; R.VectorComp = Components; return R; |