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

Unified Diff: lib/Transforms/NaCl/PNaClSjLjEH.cpp

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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
Index: lib/Transforms/NaCl/PNaClSjLjEH.cpp
diff --git a/lib/Transforms/NaCl/PNaClSjLjEH.cpp b/lib/Transforms/NaCl/PNaClSjLjEH.cpp
index ae0a3578115d83f77dc9b4451d4c1ae929b87e76..155e8c1350872e799e9e08a6a362ec2f78d7819d 100644
--- a/lib/Transforms/NaCl/PNaClSjLjEH.cpp
+++ b/lib/Transforms/NaCl/PNaClSjLjEH.cpp
@@ -192,20 +192,20 @@ void FuncRewriter::initializeFrame() {
Value *JmpBufIndexes[] = { ConstantInt::get(I32, 0),
ConstantInt::get(I32, 0),
ConstantInt::get(I32, 0) };
- FrameJmpBuf = GetElementPtrInst::Create(Frame, JmpBufIndexes,
- "invoke_jmp_buf");
+ FrameJmpBuf = GetElementPtrInst::Create(
+ ExceptionFrameTy, Frame, JmpBufIndexes, "invoke_jmp_buf");
FrameJmpBuf->insertAfter(Frame);
Value *NextPtrIndexes[] = { ConstantInt::get(I32, 0),
ConstantInt::get(I32, 1) };
- FrameNextPtr = GetElementPtrInst::Create(Frame, NextPtrIndexes,
- "invoke_next");
+ FrameNextPtr = GetElementPtrInst::Create(
+ ExceptionFrameTy, Frame, NextPtrIndexes, "invoke_next");
FrameNextPtr->insertAfter(Frame);
Value *ExcInfoIndexes[] = { ConstantInt::get(I32, 0),
ConstantInt::get(I32, 2) };
- FrameExcInfo = GetElementPtrInst::Create(Frame, ExcInfoIndexes,
- "exc_info_ptr");
+ FrameExcInfo = GetElementPtrInst::Create(
+ ExceptionFrameTy, Frame, ExcInfoIndexes, "exc_info_ptr");
FrameExcInfo->insertAfter(Frame);
}

Powered by Google App Engine
This is Rietveld 408576698