Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: lib/IR/Instructions.cpp

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/IR/InlineAsm.cpp ('k') | lib/IR/NaClAtomicIntrinsics.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/IR/Instructions.cpp
diff --git a/lib/IR/Instructions.cpp b/lib/IR/Instructions.cpp
index f4c6a289b804e0ef60c410b5544fba7255adc681..ec58c0c71799b0137146e90bec8cd0858c60f4bc 100644
--- a/lib/IR/Instructions.cpp
+++ b/lib/IR/Instructions.cpp
@@ -2850,11 +2850,9 @@ CastInst::getCastOpcode(
/// it in one place and to eliminate the redundant code for getting the sizes
/// of the types involved.
bool
-CastInst::castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) {
-
- // Check for type sanity on the arguments
- Type *SrcTy = S->getType();
-
+// @LOCALMOD-BEGIN
+CastInst::castIsValid(Instruction::CastOps op, Type *SrcTy, Type *DstTy) {
+// @LOCALMOD-END
// If this is a cast to the same type then it's trivially true.
if (SrcTy == DstTy)
return true;
« no previous file with comments | « lib/IR/InlineAsm.cpp ('k') | lib/IR/NaClAtomicIntrinsics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698