summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-07-10 20:10:14 +0000
committerDuncan Sands <baldrick@free.fr>2009-07-10 20:10:14 +0000
commit48d983c86e6bcc028bd8071e6f1a228ad8f550da (patch)
tree9f3af7422d08756950ba6083906f3fa517f0e991 /llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
parent7d369cd2a649d9c7a0e15d7467608a6bd97d2b9d (diff)
downloadbcm5719-llvm-48d983c86e6bcc028bd8071e6f1a228ad8f550da.tar.gz
bcm5719-llvm-48d983c86e6bcc028bd8071e6f1a228ad8f550da.zip
Avoid compiler warnings when assertions are turned off.
llvm-svn: 75269
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
index 979fadfc901..2471bf747f8 100644
--- a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
+++ b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
@@ -323,8 +323,8 @@ const Section *
PIC16TargetAsmInfo::CreateBSSSectionForGlobal(const GlobalVariable *GV,
std::string Addr) const {
assert (GV->hasInitializer() && "This global doesn't need space");
- Constant *C = GV->getInitializer();
- assert (C->isNullValue() && "Unitialized globals has non-zero initializer");
+ assert (GV->getInitializer()->isNullValue() &&
+ "Unitialized global has non-zero initializer");
std::string Name;
// If address is given then create a section at that address else create a
// section by section name specified in GV.
@@ -372,8 +372,8 @@ const Section *
PIC16TargetAsmInfo::CreateIDATASectionForGlobal(const GlobalVariable *GV,
std::string Addr) const {
assert (GV->hasInitializer() && "This global doesn't need space");
- Constant *C = GV->getInitializer();
- assert (!C->isNullValue() && "initialized globals has zero initializer");
+ assert (!GV->getInitializer()->isNullValue() &&
+ "initialized global has zero initializer");
assert (GV->getType()->getAddressSpace() == PIC16ISD::RAM_SPACE &&
"can be used for initialized RAM data only");
OpenPOWER on IntegriCloud