[LLVMbugs] [Bug 12265] New: ObjcC assertion: "Instruction does not dominate all uses"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 13 15:27:57 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12265
Bug #: 12265
Summary: ObjcC assertion: "Instruction does not dominate all
uses"
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: paul.q.stevenson at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
svn revision: 152666
The following code fragment fails to compile (with the assertion 'Instruction
does not dominate all uses!') with a freshly-built trunk clang run as
./Debug+Asserts/bin/clang -fobjc-arc -O1 -c -o /tmp/obj.o /tmp/bad.m
When compiling with -O0 or -fobjc-arc-exceptions, the crash doesn't occur. The
crash also doesn't occur if f() calls +1 methods such as [o new] or [o alloc]
rather than [o description]
#import <Foundation/Foundation.h>
extern void Bar(id o1, id o2);
void f(id o) {
@try {
id object1 = [o description];
id object2 = [o description];
Bar(object1, object2);
} @finally {
}
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list