diff options
author | Duncan Sands <baldrick@free.fr> | 2009-07-10 20:10:14 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-07-10 20:10:14 +0000 |
commit | 1edc4bbd3b8b4b36ae72ca4faf10e636df86caa7 (patch) | |
tree | d2e238a95deb1f5c46ae6ab90d29515ff272c970 | |
parent | e8dfcaece2b1f2f0ccfc99b3e63914a82cb0f834 (diff) | |
download | external_llvm-1edc4bbd3b8b4b36ae72ca4faf10e636df86caa7.zip external_llvm-1edc4bbd3b8b4b36ae72ca4faf10e636df86caa7.tar.gz external_llvm-1edc4bbd3b8b4b36ae72ca4faf10e636df86caa7.tar.bz2 |
Avoid compiler warnings when assertions are turned off.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75269 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PIC16/PIC16TargetAsmInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp b/lib/Target/PIC16/PIC16TargetAsmInfo.cpp index 979fadf..2471bf7 100644 --- a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp +++ b/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"); |