aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Analysis/NaCl/PNaClABITypeChecker.cpp2
-rw-r--r--lib/Transforms/NaCl/PromoteIntegers.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/NaCl/PNaClABITypeChecker.cpp b/lib/Analysis/NaCl/PNaClABITypeChecker.cpp
index 9afa04d5b5..8501a4f9e2 100644
--- a/lib/Analysis/NaCl/PNaClABITypeChecker.cpp
+++ b/lib/Analysis/NaCl/PNaClABITypeChecker.cpp
@@ -24,7 +24,7 @@ bool PNaClABITypeChecker::isValidType(const Type *Ty) {
if (VisitedTypes.count(Ty))
return VisitedTypes[Ty];
- unsigned Width;
+ // unsigned Width;
bool Valid = false;
switch (Ty->getTypeID()) {
// Allowed primitive types
diff --git a/lib/Transforms/NaCl/PromoteIntegers.cpp b/lib/Transforms/NaCl/PromoteIntegers.cpp
index dd1f091c61..e7d1aad3f8 100644
--- a/lib/Transforms/NaCl/PromoteIntegers.cpp
+++ b/lib/Transforms/NaCl/PromoteIntegers.cpp
@@ -440,7 +440,7 @@ static void convertInstruction(Instruction *Inst, ConversionState &State) {
if (shouldConvert(Store->getValueOperand())) {
splitStore(Store, State);
}
- } else if (CallInst *Call = dyn_cast<CallInst>(Inst)) {
+ } else if (isa<CallInst>(Inst)) {
report_fatal_error("can't convert calls with illegal types");
} else if (BinaryOperator *Binop = dyn_cast<BinaryOperator>(Inst)) {
Value *NewInst = NULL;