You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/values/fn_value.rs
+1-17Lines changed: 1 addition & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
use llvm_sys::analysis::{LLVMVerifierFailureAction,LLVMVerifyFunction,LLVMViewFunctionCFG,LLVMViewFunctionCFGOnly};
2
-
use llvm_sys::core::{LLVMIsAFunction,LLVMIsConstant,LLVMGetLinkage,LLVMGetPreviousFunction,LLVMGetNextFunction,LLVMGetParam,LLVMCountParams,LLVMGetLastParam,LLVMCountBasicBlocks,LLVMGetFirstParam,LLVMGetNextParam,LLVMGetBasicBlocks,LLVMAppendBasicBlock,LLVMDeleteFunction,LLVMGetLastBasicBlock,LLVMGetFirstBasicBlock,LLVMGetEntryBasicBlock,LLVMGetIntrinsicID,LLVMGetFunctionCallConv,LLVMSetFunctionCallConv,LLVMGetGC,LLVMSetGC,LLVMSetLinkage,LLVMSetParamAlignment,LLVMGetParams};
2
+
use llvm_sys::core::{LLVMIsAFunction,LLVMIsConstant,LLVMGetLinkage,LLVMGetPreviousFunction,LLVMGetNextFunction,LLVMGetParam,LLVMCountParams,LLVMGetLastParam,LLVMCountBasicBlocks,LLVMGetFirstParam,LLVMGetNextParam,LLVMGetBasicBlocks,LLVMAppendBasicBlock,LLVMDeleteFunction,LLVMGetLastBasicBlock,LLVMGetFirstBasicBlock,LLVMGetIntrinsicID,LLVMGetFunctionCallConv,LLVMSetFunctionCallConv,LLVMGetGC,LLVMSetGC,LLVMSetLinkage,LLVMSetParamAlignment,LLVMGetParams};
3
3
#[llvm_versions(3.7..=latest)]
4
4
use llvm_sys::core::{LLVMGetPersonalityFn,LLVMSetPersonalityFn};
5
5
#[llvm_versions(3.9..=latest)]
@@ -123,22 +123,6 @@ impl FunctionValue {
123
123
Some(BasicValueEnum::new(param))
124
124
}
125
125
126
-
// REVIEW: Odd behavior, a function with no BBs returns a ptr
127
-
// that isn't actually a basic_block and seems to get corrupted
128
-
// Should check filed LLVM bugs - maybe just return None since
0 commit comments