Fixing build warning/error

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Kaylor 2013-10-16 01:01:15 +00:00
parent e891775aa1
commit e5fdae03a4

View File

@ -83,10 +83,11 @@ static const char *processFDE(const char *Entry, bool isDeregister) {
P += 4;
uint32_t Offset = *((const uint32_t *)P);
if (Offset != 0)
if (isDeregister)
if (isDeregister) {
__deregister_frame(const_cast<char *>(Entry));
else
} else {
__register_frame(const_cast<char *>(Entry));
}
return P + Length;
}