Mercurial > projects > ldc
comparison gen/toir.cpp @ 258:8dbddae09152 trunk
[svn r276] Fixed debug info for 'this' arg seemed to be broken.
author | lindquist |
---|---|
date | Thu, 12 Jun 2008 19:59:19 +0200 |
parents | d61ce72c39ab |
children | 2e652b8ad1fd |
comparison
equal
deleted
inserted
replaced
257:4234b014a4f2 | 258:8dbddae09152 |
---|---|
2194 DValue* HaltExp::toElem(IRState* p) | 2194 DValue* HaltExp::toElem(IRState* p) |
2195 { | 2195 { |
2196 Logger::print("HaltExp::toElem: %s | %s\n", toChars(), type->toChars()); | 2196 Logger::print("HaltExp::toElem: %s | %s\n", toChars(), type->toChars()); |
2197 LOG_SCOPE; | 2197 LOG_SCOPE; |
2198 | 2198 |
2199 #if 0 | |
2200 DtoAssert(&loc, NULL); | |
2201 #else | |
2199 // call the new (?) trap intrinsic | 2202 // call the new (?) trap intrinsic |
2200 p->ir->CreateCall(GET_INTRINSIC_DECL(trap),""); | 2203 p->ir->CreateCall(GET_INTRINSIC_DECL(trap),""); |
2204 #endif | |
2201 | 2205 |
2202 new llvm::UnreachableInst(p->scopebb()); | 2206 new llvm::UnreachableInst(p->scopebb()); |
2203 return 0; | 2207 return 0; |
2204 } | 2208 } |
2205 | 2209 |