summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-01-07 22:05:45 +0000
committerAdrian Prantl <aprantl@apple.com>2014-01-07 22:05:45 +0000
commitb9b5b2ce07cfddd64e7e2cd06353cc9f4a566ede (patch)
tree4a1254070d1abbe4b3f271b8b7010371b96e23b9 /lib/CodeGen/CGObjC.cpp
parentd758e0751730d21aecab91a32999157aa31cff50 (diff)
downloadclang-b9b5b2ce07cfddd64e7e2cd06353cc9f4a566ede.tar.gz
clang-b9b5b2ce07cfddd64e7e2cd06353cc9f4a566ede.tar.bz2
clang-b9b5b2ce07cfddd64e7e2cd06353cc9f4a566ede.tar.xz
Revert "Debug info: Implement a cleaner version of r198461. For symmetry with"
This reverts commit 198699 so we can get a cleaner patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198713 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r--lib/CodeGen/CGObjC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp
index aa990143ac..058ce5686a 100644
--- a/lib/CodeGen/CGObjC.cpp
+++ b/lib/CodeGen/CGObjC.cpp
@@ -506,8 +506,7 @@ static llvm::Value *emitARCRetainLoadOfScalar(CodeGenFunction &CGF,
/// its pointer, name, and types registered in the class struture.
void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
StartObjCMethod(OMD, OMD->getClassInterface(), OMD->getLocStart());
- assert(isa<CompoundStmt>(OMD->getBody()));
- EmitCompoundStmtWithoutScope(*cast<CompoundStmt>(OMD->getBody()));
+ EmitStmt(OMD->getBody());
FinishFunction(OMD->getBodyRBrace());
}