[llvm-commits] [dragonegg] r94680 - /dragonegg/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Wed Jan 27 08:55:19 PST 2010
Author: baldrick
Date: Wed Jan 27 10:55:18 2010
New Revision: 94680
URL: http://llvm.org/viewvc/llvm-project?rev=94680&view=rev
Log:
Get rid of some warnings when compiling with assertions turned off.
Modified:
dragonegg/trunk/llvm-backend.cpp
Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=94680&r1=94679&r2=94680&view=diff
==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Wed Jan 27 10:55:18 2010
@@ -274,7 +274,8 @@
// SizeOfGlobalMatchesDecl - Whether the size of the given global value is the
// same as that of the given GCC declaration. Conservatively returns 'true' if
// the answer is unclear.
-static bool SizeOfGlobalMatchesDecl(GlobalValue *GV, tree decl) {
+static ATTRIBUTE_UNUSED
+bool SizeOfGlobalMatchesDecl(GlobalValue *GV, tree decl) {
// If the GCC declaration has no size then nothing useful can be said here.
if (!DECL_SIZE(decl))
return true;
@@ -1580,8 +1581,7 @@
return;
}
- bool this_adjusting = node->thunk.this_adjusting;
- assert(this_adjusting && "covariant return thunks not done yet!");
+ assert(node->thunk.this_adjusting && "covariant return thunks not done yet!");
LLVMContext &Context = getGlobalContext();
LLVMBuilder Builder(Context, *TheFolder);
More information about the llvm-commits
mailing list