aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Bendersky <eliben@chromium.org>2013-05-14 12:23:44 -0700
committerEli Bendersky <eliben@chromium.org>2013-05-14 12:23:44 -0700
commit1ab5bccd715ba92134a501ae1ebc5c0f11e8c16e (patch)
tree2b156e695dfdd1f79a60a9cbb6d6509a9c1856e9
parent4a71e626a34a257c1da0257cf580f26d12729b5d (diff)
Fix some build warnings in Nacl-specific code
BUG=None R=dschuff@chromium.org Review URL: https://codereview.chromium.org/14840018
-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;