[cfe-commits] r44615 - /cfe/trunk/CodeGen/CodeGenTypes.cpp
Chris Lattner
sabre at nondot.org
Wed Dec 5 09:21:36 PST 2007
Author: lattner
Date: Wed Dec 5 11:21:34 2007
New Revision: 44615
URL: http://llvm.org/viewvc/llvm-project?rev=44615&view=rev
Log:
fix some bogus code noticed by Kevin Andre
Modified:
cfe/trunk/CodeGen/CodeGenTypes.cpp
Modified: cfe/trunk/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CodeGenTypes.cpp?rev=44615&r1=44614&r2=44615&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/CodeGen/CodeGenTypes.cpp Wed Dec 5 11:21:34 2007
@@ -313,7 +313,7 @@
// Name the codegen type after the typedef name
// if there is no tag type name available
- if (TD->getName() == "") {
+ if (TD->getIdentifier() == 0) {
if (T->getTypeClass() == Type::TypeName) {
const TypedefType *TdT = cast<TypedefType>(T);
TypeName += TdT->getDecl()->getName();
More information about the cfe-commits
mailing list