diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-08 22:53:07 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-08 22:53:07 +0000 |
commit | e86bcf0d9ea62cc75e545787896083f8a6bc81a1 (patch) | |
tree | adb63821117f85182b35358cdfaa0fc0a3dc8111 /lib/CodeGen/CGExpr.cpp | |
parent | ba915af51ced751c46e7c2b9c6f3b59d2e668825 (diff) |
Reapply r95393, without the change to CGExpr. I was wrong in assuming that the
element type always matched the converted LLVM type for ExprType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r-- | lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index d258945079..943e890074 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -553,6 +553,8 @@ RValue CodeGenFunction::EmitLoadOfLValue(LValue LV, QualType ExprType) { cast<llvm::PointerType>(Ptr->getType())->getElementType(); // Simple scalar l-value. + // + // FIXME: We shouldn't have to use isSingleValueType here. if (EltTy->isSingleValueType()) return RValue::get(EmitLoadOfScalar(Ptr, LV.isVolatileQualified(), ExprType)); |