aboutsummaryrefslogtreecommitdiff
path: root/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-11-26 00:56:44 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-11-26 00:56:44 +0000
commite42945c0334ed41c36812829f08c96614120d423 (patch)
tree931192469c76d964f453e7538e4c7ead4b7914ba /llvm/examples/ExceptionDemo/ExceptionDemo.cpp
parent24d134c37576768c4f468a6b66d3aa8921ccfe07 (diff)
downloadllvm-e42945c0334ed41c36812829f08c96614120d423.zip
llvm-e42945c0334ed41c36812829f08c96614120d423.tar.gz
llvm-e42945c0334ed41c36812829f08c96614120d423.tar.bz2
Fix gcc's -Wunused-but-set-variable warnings.
llvm-svn: 168576
Diffstat (limited to 'llvm/examples/ExceptionDemo/ExceptionDemo.cpp')
-rw-r--r--llvm/examples/ExceptionDemo/ExceptionDemo.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
index 215cb4d..2d35ca7 100644
--- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
+++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
@@ -667,8 +667,6 @@ static _Unwind_Reason_Code handleLsda(int version,
const uint8_t *actionTableStart = callSiteTableEnd;
const uint8_t *callSitePtr = callSiteTableStart;
- bool foreignException = false;
-
while (callSitePtr < callSiteTableEnd) {
uintptr_t start = readEncodedPointer(&callSitePtr,
callSiteEncoding);
@@ -684,7 +682,6 @@ static _Unwind_Reason_Code handleLsda(int version,
// We have been notified of a foreign exception being thrown,
// and we therefore need to execute cleanup landing pads
actionEntry = 0;
- foreignException = true;
}
if (landingPad == 0) {
@@ -1687,7 +1684,6 @@ static void createStandardUtilityFunctions(unsigned numTypeInfos,
std::vector<llvm::Constant*> structVals;
llvm::Constant *nextStruct;
- llvm::GlobalVariable *nextGlobal = NULL;
// Generate each type info
//
@@ -1702,7 +1698,6 @@ static void createStandardUtilityFunctions(unsigned numTypeInfos,
typeInfoName = typeInfoNameBuilder.str();
// Note: Does not seem to work without allocation
- nextGlobal =
new llvm::GlobalVariable(module,
ourTypeInfoType,
true,