[llvm-commits] [dragonegg] r94902 - /dragonegg/trunk/llvm-debug.cpp
Duncan Sands
baldrick at free.fr
Sat Jan 30 09:20:05 PST 2010
Author: baldrick
Date: Sat Jan 30 11:20:05 2010
New Revision: 94902
URL: http://llvm.org/viewvc/llvm-project?rev=94902&view=rev
Log:
Port commit 94023 (dpatel) from llvm-gcc:
Check if BINFO_OFFSET(BInfo) is zero or not.
Modified:
dragonegg/trunk/llvm-debug.cpp
Modified: dragonegg/trunk/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-debug.cpp?rev=94902&r1=94901&r2=94902&view=diff
==============================================================================
--- dragonegg/trunk/llvm-debug.cpp (original)
+++ dragonegg/trunk/llvm-debug.cpp Sat Jan 30 11:20:05 2010
@@ -782,12 +782,17 @@
BFlags |= llvm::DIType::FlagPrivate;
}
+ // Check for zero BINFO_OFFSET.
+ // FIXME : Is this correct ?
+ unsigned Offset = BINFO_OFFSET(BInfo) ?
+ getINTEGER_CSTVal(BINFO_OFFSET(BInfo))*8 : 0;
+
// FIXME : name, size, align etc...
DIType DTy =
DebugFactory.CreateDerivedType(DW_TAG_inheritance,
findRegion(TYPE_CONTEXT(type)), StringRef(),
llvm::DICompileUnit(), 0,0,0,
- getINTEGER_CSTVal(BINFO_OFFSET(BInfo))*8,
+ Offset,
BFlags, BaseClass);
EltTys.push_back(DTy);
}
More information about the llvm-commits
mailing list