aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
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 /lib/Transforms
parent4a71e626a34a257c1da0257cf580f26d12729b5d (diff)
Fix some build warnings in Nacl-specific code
BUG=None R=dschuff@chromium.org Review URL: https://codereview.chromium.org/14840018
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/NaCl/PromoteIntegers.cpp2
1 files changed, 1 insertions, 1 deletions
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;