Skip to content

Commit 1ab5bcc

Browse files
committed
Fix some build warnings in Nacl-specific code
BUG=None [email protected] Review URL: https://codereview.chromium.org/14840018
1 parent 4a71e62 commit 1ab5bcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Analysis/NaCl/PNaClABITypeChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ bool PNaClABITypeChecker::isValidType(const Type *Ty) {
2424
if (VisitedTypes.count(Ty))
2525
return VisitedTypes[Ty];
2626

27-
unsigned Width;
27+
// unsigned Width;
2828
bool Valid = false;
2929
switch (Ty->getTypeID()) {
3030
// Allowed primitive types

lib/Transforms/NaCl/PromoteIntegers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ static void convertInstruction(Instruction *Inst, ConversionState &State) {
440440
if (shouldConvert(Store->getValueOperand())) {
441441
splitStore(Store, State);
442442
}
443-
} else if (CallInst *Call = dyn_cast<CallInst>(Inst)) {
443+
} else if (isa<CallInst>(Inst)) {
444444
report_fatal_error("can't convert calls with illegal types");
445445
} else if (BinaryOperator *Binop = dyn_cast<BinaryOperator>(Inst)) {
446446
Value *NewInst = NULL;

0 commit comments

Comments
 (0)